Jump to content
  • 0

Make the field as read-only


Kuroshi

Question

4 answers to this question

Recommended Posts

  • 0
On 8/15/2020 at 8:39 AM, Barbie said:

Hi @Batchini,

This is possible using CSS custom coding. You can use the sample code below in the Header of your DataPage.
 

<style>
input[name*="cbParamVirtual4"]
{
pointer-events: none !important;
}
</style>

You need to change the cbParamVirtual4 based on the name of your field. 

I hope this works.

- Barbie

 

Link to comment
Share on other sites

  • 0
On 9/20/2022 at 12:35 PM, RonAnderson said:

 

I have found that it's good to use 'label' as well as 'input' in the coding. Otherwise it is possible to still click on a checkbox question, and it will check/uncheck the checkbox. (Even though you can't click on the checkbox itself).

e.g.

<style>

input,

label { pointer-events: none; }

</style>

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.

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...