Announcement

Collapse
No announcement yet.

How do I tick/untick a checkbox when doing an ajax update?

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

  • How do I tick/untick a checkbox when doing an ajax update?

    I have a checkbox labelled "input" and a field labelled "device". The "device" field is a select from a table. The type of device is a boolean column and is either 1 or 0 for input or not input (aka output).

    When I change the device I would like the checkbox to be ticked or un-ticked as appropriate. Initially, when opening he form, the checkbox correctly represents the value from the table. If I then change the device selection then I get is the input value, 1 or 0, displayed to the right of the checkbox.

    How do I make the checkbox update correctly (ie ticked or unticked) from the select in Lookup Settings? If I change the "input" field to a select then I get a drop-down with just one value so the Ajax seems to work. It would just be nicer if the checkbox state could be used instead.
    Last edited by dgoadby; 06-20-2016, 12:45 PM.
    David Goadby, North Wales.
Working...
X