Universal Robots Forum

Variable attributes in the GUI

Hi there.
Is there any possibility for changing attributes in the GUI of my UR Cap?

I want to change the “max”-attribute in a number field.

Since the HTML file is only loaded once, the min="0" max="10" attributes on e.g. text fields are static in the HTML GUI. The Validator, that we are adding to the field is hence not changeable for the time being.

I would suggest adding a reasonable max value to the field, and then potentially use Java to validate the input again.
E.g. if the current maximal value is 5, even though HTML allows 10, you can read the inputted 7, and write it back to 5, while updating a label, that tells the user that “Since you chose XX to be 22, this value YY can not be greater than 5” or another explanatory label message.