+ Reply to Thread
Results 1 to 2 of 2

Thread: how to Disable a checkbox

  1. #1
    Join Date
    Apr 2015
    Location
    CA, Unitedd States
    Posts
    130

    Lightbulb how to Disable a checkbox

    Hello:

    I would like to disable a checkbox based on conditions set in my script. I've got the conditional logic down, but I don't know what the control ID is for the check boxes using the standard check boxes dialog and they are not listed in the Common Definitions.sbi. As such, I am curious as to the control IDs for the check boxes.

    If feature x is not selected then
    Set Variable %optionsel% to 10
    disable control ID Y
    End

    any idea how to figure that out?
    Thanks:
    Loretta A. Modern:
    SetupBuilder Developer Fan


    DISCLAIMERS:
    1) Any sample code a provide is provided AS-IS without any warranty of any kind and you use and rely on such sample code at your own risk.
    2) The way I do things might not work for you and how to accomplish things is SetupBuilder is constantly improving so any sample code is only provided for demonstration purposes and should be fully tested in a lab before deployment in the real world.

  2. #2
    Join Date
    Apr 2015
    Location
    CA, Unitedd States
    Posts
    130

    Post Re: how to Disable a checkbox

    Hi Everyone:

    I found a previous post from Linder who mentioned an undocumented feature for doing this.

    Note I think that all dialog box control IDs should be documented in common definitions or at least documented in the help files relevant to their dialog box.

    Since I found a solution, I figured I'd post an update here to make sure it's accessible to the next person who needs this solution.
    Thanks:
    Loretta A. Modern:
    SetupBuilder Developer Fan


    DISCLAIMERS:
    1) Any sample code a provide is provided AS-IS without any warranty of any kind and you use and rely on such sample code at your own risk.
    2) The way I do things might not work for you and how to accomplish things is SetupBuilder is constantly improving so any sample code is only provided for demonstration purposes and should be fully tested in a lab before deployment in the real world.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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