106 Posts
krkr
10 years ago
0
Topic

Hello

Please help with conditional states for fields.

Situation: 1 checkbox field with one value "A" and 2 Date fields DateA and DateB

This is working: When A is selected then DateA and DateB is visible, when A is NOT selected then DateA and DateB is hidden.

This is what I need additional: When A is not selected and DateA and DateB is hidden, then when I save form values for DateA and DateB should be empty, zero or like for date field with value 0000-00-00 00:00:00. Also this could happen at the moment when is changed field A state (before save), doesn't matter if I will lose previous value at state changing. 

Brgds

PS. FORUM POSTING!!! If you write here anything in forum, then before submitting copy message text, because sql errors or someone posted in your post id but in different place and some more errors. Just not to lose text you wrote. 

Get a Book for SEBLOD