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
6 replies
Subscribers
7 subscribers
Views
2557 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have used the SAIL Tutorial to understand the reusable variables using the lin
deepanc712
over 9 years ago
I have used the SAIL Tutorial to understand the reusable variables using the link
forum.appian.com/.../SAIL_Tutorial.html
Am able to generate the form but the comments field value is been cleared once I move the focus to submit button. Can someone let me know am I missing any logic here.
OriginalPostID-141930
OriginalPostID-141930
Discussion posts and replies are publicly visible
Parents
0
sachinr
over 9 years ago
This problem is due to different variables, you are using for showing (ri!commentValue) & saving values (ri!commentSaveInto). There should be one variable on both places that we can use for any sail component. You can save same value in more than variable as follows:
if(
ri!displayWhen,
a!paragraphField(
label: "Comments",
labelPosition: "ABOVE",
value: ri!commentValue,
saveInto: {
ri!commentValue
a!save(ri!commentSaveInto,save!value) },
/*refreshAfter: "UNFOCUS",*/
required: ri!required,
readOnly: ri!readOnly,
validations: {}
),
{}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sachinr
over 9 years ago
This problem is due to different variables, you are using for showing (ri!commentValue) & saving values (ri!commentSaveInto). There should be one variable on both places that we can use for any sail component. You can save same value in more than variable as follows:
if(
ri!displayWhen,
a!paragraphField(
label: "Comments",
labelPosition: "ABOVE",
value: ri!commentValue,
saveInto: {
ri!commentValue
a!save(ri!commentSaveInto,save!value) },
/*refreshAfter: "UNFOCUS",*/
required: ri!required,
readOnly: ri!readOnly,
validations: {}
),
{}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data