Disable top level enums
Good day everyone,
I need some assistance in disabling top-level enums. Let's say I have the following example
The top-level looks like this:
Then for each top-level entry, there are multiple other options:
I was hoping to achieve the following, or even better a combination of both:
A - Disable the top-level entry for being selected
B - If the user clicks on the top-level entry, automatically expand it so that they can select a child.
Any help or a nudge in the correct direction will be highly appreciated.
Thanks
Gerhard
Answers
Hi @Gerhard_Goossens
Just add "LeafNodeOnly:true" into the properties of the control in the form definition js file.
Geoff
Thanks that worked like a charm for the IR and SR forms.
Next question, how do I do the same for ROs. In each of our forms, I ask the user to select the building where they need assistance
@Gerhard_Goossens
Ah, unfortunately, that is not so easy. This is no configuration for this, we'd need some custom js. Not something I've ever done but I can ask around.