Skip to main content
Nintex Community Menu Bar
Solved

From rule issue with field populated from a data variable.

  • October 27, 2024
  • 1 reply
  • 25 views
  • Translate

Forum|alt.badge.img+2

Hey Team,

I am having some challenges with form rules / validation working correctly against a field that I am populating using a data variable.

 

Build Details:

  • I have a form variable “StaffID” that I am populating from a value parsed in the form URL
  • I then have a form data variable configured that is querying a SQL view that is filtered using the StaffID value
  • On the form itself I have a field “StaffName” which is configured as “Required” and “Read Only” and to populate the StaffName Field I have a rule rule triggered if it is “Not Filled” to set the value based on what is returned in the data variable.

Now this all work great if the StaffID that I use in the URL is valid and returns a result, but if I use an invalid ID in the URL, the StaffName field will obviously be blank and you would expect that the form would throw an error saying that the SatffName field is required when the submit button is hit, but it does not… the form is submitted with a blank value for StaffName.

I have also tried using a submit rule to throw an error if StaffName is either “Not Filled” or equals “” but this fails to trigger as well.

 

I have tried a few different approaches using hidden service type fields and run counts  to trigger the validation rules but so far I have not been able to find a working solution.

 

Thanks in advance for any help.

Best answer by robbsta_mac

Update…

This has been resolved by triggering the rule to run based on the presence of a result being returned from data variable rather than the field being empty on the form itself...

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 1 reply
  • Answer
  • October 29, 2024

Update…

This has been resolved by triggering the rule to run based on the presence of a result being returned from data variable rather than the field being empty on the form itself...

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings