This Knowledge Base article is relevant for ForNAV version 5.1.0.1850 and higher.
When using JavaScript in the ForNAV Designer, it is sometimes necessary to write conditions based on the value of option fields in Business Central/Dynamics NAV.
Because of this, in the Field List in the ForNAV Designer, we have introduced a new set of FieldOptions values, with the syntax <Record>.FieldOptions.<OptionField>.<Option>:
These values are strings containing the translated values of the option, which means that one of them will have the same value as the Option field they represent. The Blank option is a special case; this only exists if there is an option with a value consisting of exactly one space character. In this case, the Body1 section will only be printed if the Line Type is Item.