I'm trying to fill a radio button in a form using the URL. The radio button needs to be read-only so the user cannot change it. I'm using the following code:
$(document).on("ready", function() { $('.readonly :input').attr({'disabled':true}); }); $('.Submit').on('click', function(){ $('.readonly :input').attr('disabled', false); });
It works for setting the radio buttons as read-only, and I can see that the radio selection has been made, but I think the second part where the radio is set back to enabled isn't working because it's not passing on the value of the radio button. The variable is empty. This is a one-step form that calls a workflow, and the workflow needs this variable. Anybody have any idea what I'm doing wrong?