Inherit Default Value from Radio Button

By: Bobby Singh | Asked: 11/29/2023
ForumsCategory: Code HelpInherit Default Value from Radio Button
Bobby Singh asked 5 months ago
Hello,   I have text box where I am trying to inherit the value from choices selected from a Radio Box.   I have tried using the following code [frm-field-value field_id=x] I have also tried [frm-field-value field_id=x show=value]   However, both codes will only inherit the first choice from the Radio Box. I'm not sure what I am doing wrong. Is there another code I should be using?
1 Answers
Victor Font answered 5 months ago
Where are you trying to use this? The [frm-field-value] shortcode retrieves a value from a previous entry. If you do not include one of the user_id, entry, or ip parameters, this will retrieve the most recent entry submitted by any user. Is that what you're trying to do? Or are trying to set a default value for a field on the same form in real time while the user is creating an entry?
Bobby Singh replied 5 months ago

Hi Victor,

I am trying to set a default value for a field on the same form in real time while the user is creating an entry by choosing an option from a radio button.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right