I've got a form that is locking up in a weird way. When I say locking up I mean the page becomes sort of greyed out and everything is disabled, none of the buttons on my page are function and I have to refresh the page to get back to the perfect forms dashboard. I have narrowed it down to a behavior that runs and this is basically the order of commands.
- Button is Pressed
- Copy Fields Command (3 fields)
- Connect Command (uses a value from one of the fields in the copy fields command, and stores a returned value in a helper page)
- Set Field Command (sets a dropdown's value to the value that was returned in the connect command)
- When that dropdown changes field data:
- Run Behavior Command (This runs a behavior of a button on my helper page)
- When that helper page button is pressed:
- Connect command (grabs the value of the dropdown that changed field data and runs a sql stored procedure and sets the value of some more fields in the form)
- Run behavior command (this runs a behavior of a button on my helper page)
- When that helper page button is pressed:
- I have a series of "loops" that remove any records in 3 different tables
- Connect command (populates records into the first table that was just cleared)
- Connect command (populates records into the second table that was just cleared)
- Connect command (populates records into the third table that was just cleared)
- Show Page command ("back to last shown")
The form is locking up when the connect commands run that are populating the three tables. I've verified this with debugging and also by removing those 3 connect commands. However, if I take the Set Field command (the 4th item listed above) and move it to happen after the three connect commands that populate the tables, everything works. I'm not sure why but that fixes it and I wanted to find out the exact cause. Sorry if this is confusing, i thought it would help to write out the behaviors and the order they happened. I can submit a ticket and attach the form, but it has a number of connect commands for our systems, so i dont know if that will help much either.
