Convertigo Public Knowledge base

Assign null value to an element

In Back End projects, in Javascript elements, if you assign the null or “null” value to the expression the element will end up with the String value “null” or ““ (empty String). How to assign null value to an Element that uses a Javascript expression?

Use a jAttribute Step to set the “null” String to the expression property.

This can be a JS expression depending on the value of another variable:

 

(c) Convertigo 2023 https://www.convertigo.com