Announcement

Collapse
No announcement yet.

Read Only Checkbox on Form

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Read Only Checkbox on Form

    I need to enable/disable some check boxes on a form depending on who is logged in. I'm using sc_field_readonly during the OnLoad event to set the check boxes to read only but when the application is loaded the check boxes and their underlying data isn't displayed, the area on the page is blank.

    Is there a way to display a checkbox but not allow it to be changed by the user?

    Thank you!

  • #2
    Originally posted by Brendanboyle View Post
    I need to enable/disable some check boxes on a form depending on who is logged in. I'm using sc_field_readonly during the OnLoad event to set the check boxes to read only but when the application is loaded the check boxes and their underlying data isn't displayed, the area on the page is blank.

    Is there a way to display a checkbox but not allow it to be changed by the user?

    Thank you!
    This sounds like a bug to me. But would disabling be an option? Then the field should be grayed out.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi Albert,

      Thank you for the response. I've set the check boxes to disabled and that does works fine for what I need to do.

      Can you please point me to where the best place is to report possible bugs and I'll log this there.

      Thanks again for your help.

      Comment


      • #4
        There's a forum topic called bugs here. It sounds like a bug but on second thoughts: I can imagine that setting a read-only field is pretty easy. But a checkbox setting readonly is difficult, try it in html. So I guess it's due to the characteristics of a checkbox. But I would report it anyway ;-)
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment

        Working...
        X