Hello everyone,
I am working on a SharePoint list form that contains a few fields including a Date/Time field and a radio button. These 2 fields can alter the value of each other based on their selection. For example, on the New Form, these 2 fields will be use to determine either an exact date (i.e. 9/26/2014) or a date to be determined (Radio button: TBD). Since both will be empty when the New Form is open, I would like both the Date/Time control and the Radio Button to check each other's value. For instance, if the Date/Time control has a value and the user selects the Radio Button, the Date/Time control will clear the value and vice versa.
Since I will be using JavaScript for this, I can currently clear the Date/Time field when the Radio Button is selected, but I am having a hard time capturing the OnChange event from the Calendar control in the Date/Time field so it can clear the Radio Button. I have done extensive research on this, and none of the resources I've found worked out for me.
Has anyone be successful in acomplishing this using JavaScript? If so, are there any resources or code snippets that I can look at to try to resolve this issue? Right now this being done using server-side code, but I am trying to move most of the server-side to the client-side.
Thank you in advance.
Fausto Capellan, Jr - SharePoint Admin