Is there a way to have a default SRM resource value on a list of SRM resources on a DOM form so that it always selects a certain resource by default?
Is it also possible to have the default value, but also require that the operator make at least one additional SRM Resource selection to then allow you to save the form?
The goal is to make it easier for the operator to always include the facilities' monitoring IRD in addition to the other SRM IRD resources the user needs for that particular booking.
Hi Michael,
It should be possible to define that resource ID as the default value of the ResourceFieldDescriptor. It is however currently not possible to add that kind of condition to have a secondary resource selected. You will need to work around this using states & an interactive script as mentioned by Jens.
You could set up a script that runs after the DOM instance is created that looks at the DOM instances and updates it if it does not include that default resource. If you then have this field marked as required. The user would be forced to select at least one resource. This would however break if that resource is the monitoring IRD one... (This could be solved by separating it in another pool if that makes sense.)
The script solution will probably give you the most control over this.