Clear Radio Buttons based on a People Picker
- This topic has 1 reply, 2 voices, and was last updated 10 years, 9 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Classic DFFS › Clear Radio Buttons based on a People Picker
Hi,
I want to clear the Radio Button Selection if a People Picker is Blank.
How would I do this? Right now, we select a person, then we use the Radio Button to indicate their level, Expert, Advanced, Competent or Novice.
When we remove the person’s name, I want the Radio button to clear….since you can’t use a People Picker in a rule, I am unsure of how I can do this….
Thanks!
Lana
Hi,
People pickers can be used as triggers in SP2013, but if you are on SP2010 you can set up this function in the Custom JS:
/* Change "Level" to match you radio choice field name and "PeoplePicker" to match your people picker field name */
setInterval(function(){
var level = getFieldValue("Level"), ppArr;
if(level !== ""){
ppArr = getFieldValue("PeoplePicker");
if(ppArr.length === 0){
// Clear radio choice
setFieldValue("Level","");
}
}
},1000);
Hope this helps,
Alexander