DMXzone Server Connect Support Product Page

Update record with checkbox onChange

Asked 21 Nov 2016 14:55:05
1
has this question
21 Nov 2016 14:55:05 Hans Haverlach posted:
I have a dynamic list (repeat region).
Each row show data an a checkbox tot publish/unpublish

I want the user by checking/unchecking the checkbox change the value from that record to 1/0
So the action check/uncheck must update my database. I don't want to use a submit button. Just the action of the user by checking/unchecking the checkbox.

Somehow I can get it to work with server connect.
How do I do that?

Thanx!

Replies

Replied 22 Nov 2016 09:13:05
22 Nov 2016 09:13:05 Teodor Kuduschiev replied:
Hello Hans,
You can try running the update executor onChange event (applied to the checkbox). Make sure to use the .default() format, applied to the checkbox values also.
www.dmxzone.com/go/32645/applying-text-data-formatters-and-adding-a-default-value/

Reply to this topic