I have a table containing <userID, Username , Email> of users. If the user is not in active state then I print “User not found” in the table.
The form contains, agree checkbox at the end of form. I want to put a hidden field such that if the table has any “User not found” entry in table then the agree checkbox validation script throws error message and does not allow to proceed. I am not able to achieve this. I have got the table working with script checking User not found.
Hi Shivangi,
Can you share the form in XML format?
HI @ShivangiS ,
you can use hidden=“true” for the hidden field and have dependency=“fieldName of the table” to create a hidden field and have access of table field value in the hidden field. also set the hidden field as dynamic=“true”
Hi @ShivangiS
for thie field config you need to add:
<Field displayName="z" helpKey="x" name="y" postBack="true" required="true" type="string">
<Attributes>
<Map>
<entry key="hidden" value="true"/>
</Map>
</Attributes>
</Field>
If you need to write some code that calculates the value you can select script or rule in configuration
2 Likes
The issue is Solved
The suggested does not work
What I found works best is to have a Section for the field you want to hide, then apply the logic to the section.
<Section label="Valid User">
<Attributes>
<Map>
<entry key="hidden">
<value>
<Script>
<Source><![CDATA[
if (valid==null) {
return true;
} else {
return false;
}
]]></Source>
</Script>
</value>
</entry>
</Map>
</Attributes>
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
