Are control scripts and enabling sections only available as the first thing that happens with a new record?
Is there a better way?
I’d like to conditionally enable a section based on very complex scripts that execute on a previous section. It appears that the control scripts have already been evaluated by this time though.
Update…_____________
The content I need to hide and show is listed in a JSON file. I’ve not had any luck pulling that into a control script although it does load well in other scripts. Can I extend the datamapper with a table or 2 created from the Jason data? Fields of course are available to the control script.
As I’ve toyed with global variables I’ve come to these understandings which might not be totally acurate.
-
Job infos are available across all sections and all records
-
Control scripts and global variables created in them are evaluated only at the “on read” of a record. Although those variables can be used in all sections just not for controlling.
-
Global variables defined with head as the selector are available to all sections, current record only, also not for section control.
-
Global variables defined with body as the selector are only available for the current section