Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: Checkbox read only by capability word

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    United States
    Posts
    4

    Default Checkbox read only by capability word

    I have a checkbox that I want to control who can actually check it by a capability word. Does anyone know how I can do this? The input for the checkbox is hot.new.src the capability word is HotNews. I'm thinking I need to add something in the readonly condtion property of the field...

  2. #2
    Senior Member eisefr's Avatar
    Join Date
    Nov 2001
    Location
    Germany
    Posts
    538

    Default

    You are right..

    You have to set READ ONLY to YES.
    The condition would be [$lo.user.name]="Admin"

    With this setup only the Admin-User could change the value of this field.

    Don't forget also to putt a field on your form with input $lo.user.name and set it to VISIBLE=NO. Without this the first condition wouldn't work.

    Bye from Germany.
    Frank

  3. #3
    Senior Member eisefr's Avatar
    Join Date
    Nov 2001
    Location
    Germany
    Posts
    538

    Default

    Oh.. I read to fast earlier.. I seen that just now about the capability word... sorry. Blind fish..

    But thats easy to do too.

    You have to add the following calculation to your format control:

    Add, Display, Update = true

    if index("HotNews",$lo.ucapex)>0 then $access="ok" else $access="notok"


    The read only - condition of your field would have to be:
    [$access]="ok"


    And also here you have to add a field with the input $access to your form and make it invisible.

    Bye from Germany.
    Frank

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts