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
2182 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
0
olivierd
over 10 years ago
...l settings which blocked the load event? I've tried it on a very simple example and the rule load is started every time. Thanks for your help!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
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
0
olivierd
over 10 years ago
Thanks for your help eduardo, I've tried it but it didn't worked.
After trying various solutions, I've finally found a workaround: I duplicated the JS function, renamed it and change the on load event to use the new one, and it's now working. I don't know why exactly, no changes within the code.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
I also encourage you to review all the new dynamic features SAIL offers in the latest version of Appian. Upgrading to the latest version will allow you to achieve a lot of dynamic behaviors that used to require JS.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Some useful links to learn more about the new features:
forum.appian.com/.../SAIL_Components
forum.appian.com/.../SAIL_Recipes
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel