I have a SAIL form with a lot of information, but not all are editable except 3

I have a SAIL form with a lot of information, but not all are editable except 3 paragraph fields that are assigned to 3 different users for input such as monthly highlights. The user access this form through assigned task, and I am using the Save Changes feature. It's working correctly even if navigating to different screens such as Reports or Actions, and if returning to the same task the Save Changes is stored correctly - display what I have in the paragraph field so I do see what was there before.

If I click on Submit without making any change to the paragraph field, it will write empty value to the database for all the fields including the non-editable fields.

However, If I return to the same task and type something in such as adding a period to the existing text in the paragraph field, it will save correctly -what was there before plus the period. It is very strange. What is causing my problem? I am on 7.7

I hate to tell the user to add something to ...

OriginalPostID-143958

OriginalPostID-143958

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Since the user is not interacting with the field, the saveInto part of that field is never executed. Two options are: (i) populate the default values on form input acs, rather than in local variables, or (ii) on the submit button, add a new a!save() for each default value. For example:
    saveInto: {
    ri!buttonClicked,
    a!save(ri!field1, if(isnull(ri!field1), local!field1DefaultValue, ri!field1)),
    ...
    }
Reply
  • 0
    Certified Lead Developer
    Since the user is not interacting with the field, the saveInto part of that field is never executed. Two options are: (i) populate the default values on form input acs, rather than in local variables, or (ii) on the submit button, add a new a!save() for each default value. For example:
    saveInto: {
    ri!buttonClicked,
    a!save(ri!field1, if(isnull(ri!field1), local!field1DefaultValue, ri!field1)),
    ...
    }
Children
No Data