How to Enable/Disable and Mandate/Non-Mandate Fields using Field and Form Rules Script

How to Enable/Disable and Mandate/Non-Mandate Fields using Field and Form Rules Script

Is there a way to Enable/Disable and Mandate/Non-Mandate template fields within a Field & Form Rules script?

I think I'd need to do it within a script rather than what's available within the GUI of F&F rules because I need logic to compare two date fields in deciding how to set the availability of a third field.

Basically, we have Date1 and Date2. If they are the same, users don't need to (and shouldn't be able to) populate an Explanation field. But if the dates differ, we want to require that the Explanation field be populated.

F&F rules allow me to check whether a date is populated, or even whether it matches a hardcoded date. But I don't see any way to check whether the two date fields have different values without a script. And so I'm wondering whether it's possible to set the date field attributes via the script.

Is there a list of the commands that can be executed via script to set template field attributes such as enabled/disabled, mandated/non-mandated, visible/hidden, etc.?

                  New to ADSelfService Plus?