Copy multiple fields in the same form (address)

By: Rachelle Ramirez | Asked: 08/23/2023
ForumsCategory: Code SnippetsCopy multiple fields in the same form (address)
Rachelle Ramirez asked 8 months ago
Hi, I don't know how to code in PHP so I need help with this simple task. The copy address field that Formidable provides only works if you use the group address field. But I want to use their country/state lookup add-on so I have to have the address fields individually. I have two kinds of addresses, physical and mailing. How do I copy physical to mailing when a checkbox that says they are the same is checked?
1 Answers
Victor Font answered 8 months ago
This is a common request and I have a standard process to accomplish this that uses jQuery. This is a tutorial I wrote in 2014 that explains how to do this. I have not looked at this post since I published it. The post demonstrates how to create a form with a tabbed interface using a 3rd-party plugin. There's something wrong when I click a tab. The page scrolls to the top. It's annoying but doesn't break the functionality. The field binding and copying works as it should. The code you need to use starts at line 28 in the The After-fields jQuery code at the bottom of the page.
Rachelle Ramirez replied 8 months ago

Thank you for your response but I can't find this tutorial in FM website. The earliest tutorial was from 2019.

Victor Font replied 8 months ago

I'm sorry, I forgot to add the link. It's on my other site: https://victorfont.com/formidable-pro-tabbed-form-sample

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