Copy value [ID], from one page to another

By: Henning Jønsson | Asked: 12/11/2024
ForumsCategory: General questionsCopy value [ID], from one page to another
Henning Jønsson asked 16 hours ago
hello I have a formula that is divided into 3 pages. Each page has a field, which I want to copy on to the next page. Page 1. Field 1 (ID 1) Page 2 Field 2 (ID2) Field 3 - Copy of content from field 1- default value = [1] (this work, it copy the value from ID 1) Page 3 Field 4 - Copy of content from field 2- default value = [2] (it doesn't work). If I use [1], on the other hand, it works. It's like when I change page from 1 to 2, there is nothing in field 2 yet and thus it stores "a blank" data in field 4. If, on the other hand, I set a default value on field 2, it will be copied to field 4. This confirms my assumption with the copy of all content at the first page change. Is this by design or me doing something wrong.
2 Answers
Victor Font answered 10 hours ago
I cannot follow what you are doing.Formidable does not store blank values. In a multi-page form, all fields are available on all pages. If you examine the HTML source code in your browser, you'll see that all fields not assigned to a specific page are hidden. You can copy a value across all four fields at once with jQuery. Multiple fields with same values however is not a coding best practice when it comes to database management. Are you familiar with "single source of truth".
Henning Jønsson answered 8 hours ago
The above is also just an example to make understanding easier. Maybe you can try to make my example yourself? and see if it works for you, at least it doesn't here. my real formula contains maybe 130 fields, spread over 4 pages. The reason I copy the content is so that the user does not have to type it again on the last page. The reason I have 4 pages is to make it more clear for the user.

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