[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

How can you disable a checkbox?

Good morning, Experts!
  I have a  checkbox that cannot be clicked when a flag = Y and message box comes up informing user that he cannot click it. How can I gray it out or disable it so that I can be sure they will not check it?

Thank you
0
cyle
Asked:
cyle
  • 3
  • 3
1 Solution
 
p_parthaCommented:
Have two checkbox fields one computed for display and one editable. The computed for display will be visible when flag =Y and editable one will be visible when flag is not equal to Y

Partha
0
 
Sjef BosmanGroupware ConsultantCommented:
It's 16:34 here...

Are you talking Notes or browser? In Notes: is the form in edit-mode? I think it cannot be done in R5, you can hide it with hide-when's. In R6, there is the Input Enabled property of a field.
0
 
p_parthaCommented:
If it is web then in the HTML attributes just give this;

@if (Flag='Y';"disabled = \"true\"";"")

Partha
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
cyleAuthor Commented:
Sjef bosman,
   Notes----in editmode---R6.   Where is the input enabled property?
0
 
p_parthaCommented:
Cyle
fromthe help:Input Enabled only works when the field style is set to Native OS.

So you might have to end up using Hidewhens which i explained


partha
0
 
Sjef BosmanGroupware ConsultantCommented:
Click on the field in the Designer, then look at the left, in the field's properties stuff, where Default Value is, th 4th line.
0
 
Sjef BosmanGroupware ConsultantCommented:
1-1 bro! Moreover, there's no Input Enabled in R5, so no backward compatibility.

Points to P!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now