Dynamic form values

Hey guys,
Is there a decent example of how to change input values in forms based on selection? For example, If I select Partion: gpupriority or gputest, I’d like to change “GPUs requested” to 1 (minimum value=1). If I select Partition: priority (cpus only), I’d like to set “GPUs requested” to 0 and make it unchangeable.
Another example is if I select Partition: priority I’d like to only offer priority accounts assigned to the user (some users are in multiple groups).

Does that make sense?

Kenny

Hi Kenny.

Here are the docs for the Dynamic form widget. Please let us know if you need additional help.

https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/dynamic-form-widgets.html

thanks,
-gerald

1 Like

Oooooh :stuck_out_tongue: thanks Gerald!

Kenny

I found an error in your documentation. Pretty sure the Default should be set to false. LINK

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.