Copy link to clipboard
Copied
Trying to figure out how to have a form field auto fill the current date when a specific radio button is selected.
'Choice1' is radio button choice not field name. Go to radio button field properties and under 'Options' tab change 'Radio button choice'.
Copy link to clipboard
Copied
As Mouse UP event of that radio button use something like this:
if(event.target.value == "Choice1")
this.getField("Date").value = new Date();
Change field name and choice if needed.
Copy link to clipboard
Copied
Cant get this to work but it is probably me. I am adding this as a mouse up event to the radio button. I am changing "Choice1" to the radio button name and "Date" to the date field name. Nothing happens when I select the radio button. (sorry still way new and learning)
Copy link to clipboard
Copied
'Choice1' is radio button choice not field name. Go to radio button field properties and under 'Options' tab change 'Radio button choice'.
Copy link to clipboard
Copied
excellent got it to work, thank you!