Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
8 subscribers
Views
2184 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, I have an on load event issue. I have a user input task A with a lot of fiel
olivierd
over 10 years ago
Hi, I have an on load event issue. I have a user input task A with a lot of fields, JavaScript to generate hidden fields depending on dropdown value, dates validations, etc... Once submitted, the same user get a task B to review the inputs (in between there are various scripts, HTML doc from template and mov doc linked by chained activity, but in total approx 15 automatic nodes) . In this task, user can select to go back to task A or proceed (Next steps radio box & XOR to trigger depending on the selection).
If the user select to go back to task A, the form opens but the event rule load is not started. User needs to save the task and reopen it to finally get the load event. It's really an issue as in the first load data are missing on the form, and date validations failed and block the submission. The load event is linked to a java script which hidden or display fields depending on values.
Is there a reason why this is happening in my case? Could it be specia...
OriginalPostID-106542
OriginalPostID-106542
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Can you try editing your load event and wrapping your code inside this block (instead of //JS CODE GOES HERE) try with different times. This example delays the execution of the JS for 500 ms try different numbers; this sounds like a race condition where the components are not fully loaded yet when your code runs.
setTimeout(function() {
//JS CODE GOES HERE
}, 500);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Can you try editing your load event and wrapping your code inside this block (instead of //JS CODE GOES HERE) try with different times. This example delays the execution of the JS for 500 ms try different numbers; this sounds like a race condition where the components are not fully loaded yet when your code runs.
setTimeout(function() {
//JS CODE GOES HERE
}, 500);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data