I have widgets like dropdown, textbox and date range. I want to provide a validation on it. when i select the fields or value my data is populated in grid. But when i dont select one of the fields (dropdown, date range or textbox), an error message must popup(e. Must select or Enter a value)( Or must select the date range correctly) on button click, how can i do it?
Please provide me the way for doing it.
Solved! Go to Solution.
You may achieve what you are looking for using validator and a status message. You may find the validator either from the bottom right Fuction tab. Click the "+" button on the functions tab and choose to add Validator from the available options. Create a validator as shown in the attached image. Depending on the version of ThingWorx you are on, you may find the Status message from the widgets sections or the bottom right functions section. Create a status message with your desired message and bind the ShowMessage event to the false event of the validator. This will invoke the status message whenever your validator results false.
Please let me know if you run into any issues with the implementation.