Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

Disabling form validation programmatically


Romeo Casimina 3

Recommended Posts

Hi Gurus,

I have a form where I allow user to select value from drop down and based on the selected drop down, it will fetch some values that I need to present on the same form. How I did this is upon selection, I invoke the submit form (using invokeAction)which will then call a service task in my process to get the value and return to the same form. However, the issue that I am facing is that submit tries to validate the form which in return will be false as the other fields on my form has not been populated yet and will only be populated once the service has executed which is not happening. Not sure if there is a way for me to disable the validation until user really click the submit button.

Link to comment
Share on other sites

miotot,there is no provision for temporarily disabling validations - the data are always validated upon submission to the server during pageflow execution. You could hold the unvalidated, interim data in temporary fields which aren't subject to these constraints. Once you've assembled all the data you can copy them to their final, validated destinations. Cheers, --A
Link to comment
Share on other sites

  • 2 months later...

A) You could make a pageflow with the first form (without validations) where the user selects from the drop-down, a service task, and then the same form (with validations).

B) If your data is not too large, you could call the service before the user task. You could then filter the data you want to show based on the user selection.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...