Field value is cleared during submission of the form

Using 8.3p3 version of IdentityIQ.
There is a form with fields - consider field A and field B. Field A is of type ‘sailpoint.object.ManagedAttribute’. Field B is of type ‘string’ and has postBack=“true” (for another dependent field). In the form on selecting field A value and field B value, when clicking the next button, the field A value is cleared. We are obliged to enter it again to eventually go to the next screen. What is causing the field A to get cleared and how to prevent it?

Verify persistState="true" on the Form or Workflow Step: Make sure the <Form> element or the <Step> element in your workflow that contains this form has the attribute persistState="true". This attribute tells the IdentityIQ framework to attempt to preserve the form’s state across postbacks.

<Form name="yourFormName" persistState="true">
    </Field>
    <Field name="fieldA" type="sailpoint.object.ManagedAttribute" .../>
    <Field name="fieldB" type="string" postBack="true" .../>
</Form>

Can you send your form field?

Hi Pattabhi,

Tried your solution but on adding persistState=“true”` on the Form and Workflow Step, system administration error is reported.
Thanks

Hi Megha,

Can you try this :

Ensure Field A has a value binding , like:

Or

Try with PostBack False? for field A

Hi @MeghaB

When postBack=“true” is set on Field B, the form performs a server-side refresh. During this process, the value of Field A (which is of type ManagedAttribute) may be lost if it isn’t explicitly preserved.

To prevent this, add the attribute persisted=“true” to Field A:

<Field name="role" type="sailpoint.object.ManagedAttribute" persisted="true">

By setting persisted=“true”, you ensure that SailPoint retains the value of this field during the postBack, preventing it from being cleared.

This is a known behavior in IdentityIQ 8.3p3. You can reproduce it by using a form with a ManagedAttribute field and another field that has postBack=“true”. Without the persisted=“true” attribute, the ManagedAttribute field will reset whenever the form reloads due to a postBack event.

Hi @PydiManiPadmaPriya

I tried your approach by adding the persisted=“true” attribute in the field A from debug page but getting error on saving - ‘The system has encountered a serious error while processing your request. See your system administrator.’. Please let me know if there is another way we can add this attribute.

Thanks