Announcement

Collapse
No announcement yet.

How to programatically set the check box field to null?

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

  • How to programatically set the check box field to null?

    Hi,

    It may be a simple task, but I still can't figure it out. I want to set the the check box field to null (no box chosen).

    I try,
    Code:
    if ({check_field} == 'T'){
    //some code
    }else{
    sc_error_message("text");
    //uncheck the field
    {check_field} = '';
    }
    and no success.

  • #2
    You may be able to do this in the Javascript settings area - Form Settings -> Javascript. Select the field and the action you want to control, then Edit. You can set the field property to something like document.F1.check_field[0].checked = false

    You can find examples in the documentation - Content -> Form Applications -> Form -> Javascript

    Comment

    Working...
    X