Clear Radio Buttons based on a People Picker

Forums Classic DFFS Clear Radio Buttons based on a People Picker

Viewing 1 reply thread
  • Author
    Posts
    • #10229
      Lana
      Participant

      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

    • #10255
      Alexander Bautz
      Keymaster

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.