You are viewing limited content. For full access, please sign in.

Question

Question

How to reset radio button after form submittal

asked on February 14, 2018 Show version history

Hello,

I have a forms process where the user fills out some fields and then dependent on what they need to do, they will select one of three radio buttons.

 

The buttons are, Send to Workshop Services, Route for Additional Approval, and Cancel.

 

If the submitter selects the "Route for Additional Approval", the forms process will route the current submitted form back to whover needs to do the additional approval.

 

Where the problem lies is that, after the submitter has selected and of the afforementioned radio buttons, the person who gets assigned the form after, still see's the radio button that has been selected. ( I have attached a screen shot depicting the three radio buttons and what it looks like after the form has been sumbitted and the next user see's it).

 

 

We don't want the radio buttons to retain the selection from the original form submittal as it confuses end users.

 

Is there a way to clear out the radio button selections after submittal so the next person doesn't see them?

 

Thanks!

Forms Issue.jpg
Forms Issue.jpg (62.98 KB)
1 0

Replies

replied on February 14, 2018

One option would be to give the radio buttons a class name, say "radio" then clear the buttons when the form loads. This way the form is cleared every time the form is loaded, but keeps the choice throughout the routing process, until it reaches the next form.

 

$( document ).ready(function() {
  
  $('.radio input').removeAttr('checked');

});

 

2 0
replied on February 14, 2018

Thanks Raul! I will try adding this in! Crossing my fingers.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.