I have used the SAIL Tutorial to understand the reusable variables using the lin

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
  • 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: {}
    ),
    {}
    )
Reply
  • 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: {}
    ),
    {}
    )
Children
No Data