Skip to content
Advertisement

Tag: radio-button

How to change which choice in a Gravity Forms radio button field is selected using PHP as part of a gform_pre_submission

My PHP skills are not good but I learn by code example because I am not familiar with the syntax, but in this case I can not find a code example that works. I want to set a Product Option Radio Button Field’s selected value during a gform_pre_submission add_action based on another field’s value. I’ve tried something like this (there

My PHP not processing input from radio buttons

EDIT: Some more searching on the wide web led me to this… Later on, in my form, I disable these radio buttons to prevent users from changing their previous answers after some time… Is it possible that the PHP is not reading the diasabled buttons? How should I then prevent the change of radio button states AND still have readable

Hide html content based on radio selection

Hi I’m fairly new to php/html and Im having trouble with hiding the inputs based on my radio input selection. I want to be able to hide the rest of the inputs if “yes” is selected but nothing happens. Any help would be greatly appreciated. Thanks. Answer Make sure your function block is closed properly: remove javascript: from onclick=”javascript:yesnoCheck();”

Radio not disabling due to loop

This is my radio disabling function. And I will call it when the page is loaded! And the radio button is displayed through loop..! So the radio ids would be like: dis1,dis2 … dis6 But its not disabling it…! I think its because of the while loop, I used..! what should I do..? Answer this line: should be (note the

Using radio box selection to display multiple DIVs

I need to be able to use three radio buttons to determine which P’s display on a page. All items are queried from a database so there is no fixed number. I’d like to stick with javascript if possible. All is written inside PHP code Tried using the following: Then each P will have the option of 6 prices that

Radio buttons checked changing submit text

My site structure consists on an index.php which is styled by a css file. It then includes the following php code in a separate file: It appears on screen with no problems in the correct layout as my css style sheet. What I would like this to do is when I select the “Subscribe” radio button the submit button text

Advertisement