cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sruetzler
Level 4

Validate input of a textbox

Hello,
i have a suite installation and i want to be sure that the format of a value is correct, e.g. only number in a specific range.

The textbox ha a property Validate and the descriptions says something about custom validation function when the user changes the control.
It sounds like that i can solve my probem with this.

But how can it be used.
What is signiture of the called function.
How is the syntax for the property to call this function.

Thanks Simon
Labels (1)
0 Kudos
(3) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

This blog post on calling functions from the Suite UI describes the format of the function, and the API available to it. While there is a Validate field, for now I would suggest using the Action field instead.
0 Kudos
sruetzler
Level 4

Thanks this is working.

For other user with the same problem.
How i solve the problem:

I inserted a label with an error message wich i can set visible with a property
I changed the Next (Install) Button that i can disable it with a property
I'm using the action field of the textbox to call a custom function.

In the function i check the input. If it is not valid i set the property to set the label visible and i set the property to disable the Next (Install) button.
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

That sounds like just the approach we've just posted on the InstallTalk blog. Well done.
0 Kudos