From the com.day.cq.wcm.foundation.forms package, FormsHelper has a method called getOptions that returns the options for a form element. How does it know the options for a form from the request and the elementResouce?
It gets a ValueMap from a Resource[1]. Check for optionsLoadPath if true adopt the return into string array. Otherwise get default values from options properties.
It gets a ValueMap from a Resource[1]. Check for optionsLoadPath if true adopt the return into string array. Otherwise get default values from options properties.
Thanks for the quick reply! I have successfully had optionsLoadPath pointing to a property which is a string array, but do you know how I can set optionsLoadPath to point to a script? Are there any examples of this?