Hi I have created a form with below fields
Code of above image
<Field displayName="Select" dynamic="true" name="Field_6" postBack="true" required="true" type="Application"/>
<Field displayName="Roles" multi="true" name="Field_7" postBack="true" required="true" type="Bundle">
<AllowedValuesDefinition>
<Script>
<Source>
import sailpoint.tools.Util;
import sailpoint.object.Bundle;
import sailpoint.object.QueryOptions;
import sailpoint.object.Filter;
List roleList= new ArrayList();
QueryOptions ops=new QueryOptions();
ops.addFilter(Filter.eq("type","SAP"));
Iterator it = context.search(Bundle.class, ops);
while ( (null != it) && (it.hasNext()) ) {
Bundle record = (Bundle)it.next();
roleList.add(record.getName()) ;
}
return roleList;
</Source>
</Script>
</AllowedValuesDefinition>
</Field>
After clicking the review button, other fields are coming as it is but these two fields are different as given below
Code for the above
<Field displayName="Select" name="Field_6" type="string">
<Attributes>
<Map>
<entry key="readOnly" value="true"/>
</Map>
</Attributes>
<Script>
<Source>return Field_6;</Source>
</Script>
</Field>
<Field displayName="Roles" name="Field_7" type="string">
<Attributes>
<Map>
<entry key="readOnly" value="true"/>
</Map>
</Attributes>
<Script>
<Source>return Field_7;</Source>
</Script>
</Field>
Why is this happening?