Set choice field value using java script :
I have a choice field with values :
Open
Closed
Cancelled
When my page loads, my choice column should be selected as "Cancelled"(i don't want to set using OOTB default value option.)
|
Set choice field value using java script : I have a choice field with values : When my page loads, my choice column should be selected as "Cancelled"(i don't want to set using OOTB default value option.) |
|||||
|
|
Imagine you have the following radio buttons:
You can select the radio button using the following jQuery code. Insert this code in EditForm.aspx and you're good to go.
Here is the JS only code: Refer the JS in the EditForm.aspx: Try this in your myjs.js file:
|
|||||||||
|