This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Validate input of a textbox
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 05, 2012
05:27 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 05, 2012
08:14 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
02:12 AM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
08:26 AM
That sounds like just the approach we've just posted on the InstallTalk blog. Well done.