Skip to main content
All CollectionsWorking With Data Events or Calculation fieldsGeneral
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 6 years 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?