automatic current date filled when another field is changed

i’m new with scriptcase and i have a field that has 2 radio button choices, and another date field, i want that date field to be filled automatically when the user make the choice on the radio button field, i tried it with an ajax event, onchange of that radio button to fill with an sql query but it didn’t work, is it possible to fill the date automatically ?

In the case of radio button you have to use the onclick event instead of the onchange.

Regards.

it worked, but i was hoping to see the change onclick, but i have to go to another record then go back to that record to see the change, anyway thank you Kafecadm !

Hello man:

This is weird:

If you use an ajax event with a code like


{myfield} = date();

It should show the change immediately… could you please share your code with me?.

Regards

hello, i’m actually a woman :slight_smile: , and the mistake i did was putting an sql update query before the php code : {date_s2}= date(“Y-m-d”); so now it’s fixed and worked perfect, thank you for your reply

woopsy daisy… =P