Jump to content

Hiding a field in a datapage

Recommended Posts

If it is an authenticated submission form where in the authentication table you have the membership type column which stores the member's type then you can use the following script:

if([@authfield:Membership_Type] == "Seller");


document.getElementById("InsertRecordPHOTO").style.display= 'none';


Insert an HTML Block and place this script in. The HTML Block should be moved down to the end of all the form elements so it should be the last element in the list.


Replace the "Membership_Type" with the proper field name in your authentication table.

Replace the "PHOTO" with your photo field name.

Hope this works.


Bahar M.

Link to comment
Share on other sites

  • 8 years later...


There is also a way on how to hide a field based on the users membership level. A conditional form is a regular Caspio form with rules consisting of criteria and conditional actions. You can apply conditional rules to create dynamic change forms that fine tune fields based on user entries. In the Rules tab of the DataPage wizard, you can create various conditions to hide, show, require or disable specific fields based on the value or selection of other fields in the same form.

You may refer to this link for more information:




kristina :) 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...