Default a field's value to the value of another field on same form in Formidable Pro

By: Bob Landolfi | Asked: 08/01/2023
ForumsCategory: How-toDefault a field's value to the value of another field on same form in Formidable Pro
Bob Landolfi asked 9 months ago

According to documentation here: https://formidableforms.com/knowledgebase/get-a-value-from-an-entry/ If I am reading this documentation correctly, I should be able to have Field B on a form set to the value of previously entered field A on that same form by setting the default value of B as follows: [frm-field-value field_id=A user_id=current] But this is not working for me. Any ideas?

EDIT: It appears the issue may be that the above refers to a field that is an entry (i.e., already submitted and saved). To clarify, what I'm trying to do is have Field A determine the value of Field B before the form is submitted.

1 Answers
Victor Font answered 9 months ago
Set the default value of field B to field A. All you need to do is place Field A's shortcode ID or Key in the default value field for field B. https://formidableforms.com/knowledgebase/using-dynamic-default-values-in-fields/
Bob Landolfi replied 9 months ago

Thanks very much! I figured this out, but a couple quirks I noticed, and it could be that I am way overloading this particular form with dynamic fields and fields that appear conditionally:

1. I had to use a page break between Field A and B to get the fieldID shortcodes to work (fields were of type name and phone number in both cases).
2. The shortcode did not work at all for me if fields A and B were both email addresses. I worked around it by making the Field B email address a text field, then it worked.

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