All Collections
Working With Data Events or Calculation fields
General
Is there any way to save my expression in a calculation field or data event when it is not valid?
Is there any way to save my expression in a calculation field or data event when it is not valid?

How to save your invalid code.

Zac McCormick avatar
Written by Zac McCormick
Updated over a week ago

Is there any way to save my expression in a calculation field or data event when it is not valid?

In the event that you have an invalid javascript/expressions in the calculation field, but would like to save the work you have done, you can comment out the code that is invalid. This will allow you to save the work that has been done with out impacting your app.

To do this, you need to add /*  before the code and */  after the code.

Example:

/*
Invalid Javascript
*/
Did this answer your question?