Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

different textfields on several pages

Avatar

Level 3

Hello everybody

In a form with multiple pages, I have some textfields with same name and bound with "Use global data".

I explain. On the first page, there are 2 textfields named "Country". The user types in a textfield and the text appears in the second box. Well

On the second page, again 2 textfields named "Country" but, of course, I can see the same text  than in the first page because of the same bind.

The only solution I found was to change "Country" in "Country2" but it's not very pleasant with many textfields and many pages. Probably a solution exists, but which one ?

Many thanks for your help 

1 Accepted Solution

Avatar

Correct answer by
Level 2

You are welcome. Can you please mark this question as answered.

View solution in original post

11 Replies

Avatar

Level 2

Anothe solution could be not to use global data binding and instead switch to 'Use name' binding. Global binding is designed to show same value in ssame name fields.

Avatar

Level 3

Thanks Ragha,

But in fact, I would like to auto increment the textfields. I have got several pages. This is a form to fill in some business cards. So, on the first page there is a common textfield (name) and below 2 textfields also called name. They are automatically filled. On the second page, I have got again the same textfields with the same name. So, obviously, the textfields have the same name than on the first page because of the kind of binding (global data). In my opinion, your solution with "use name" is about equivalent to mine. I would like to know if, by creating only one master page, the different textfields (name, function, tel, and so on) can be auto increment with javascript to avoid some errors.

Many thanks

Avatar

Level 2

I am not sure why do you want different names. Even same name fields can pretty much solve what you want. In fact in XFA world if you use 2 fields of same name they will be assigned separate SOM expression. 

Avatar

Level 2

The mast page fields for every page are different and can be assigned different values.

Avatar

Level 3

Ragha,

As you can see, here are 2 pages with the sames textfields following the criteria (name, fonction, function and tel). All textfields are linked with the binding global. I don't want the same response on the page 2. Each page are different.

I don't know to do that except changing the name on page 2 with name2, function with function2 and so on. Please, could you send me a sample.

Many thanks

form_Page_1.jpg

form_Page_2.jpg

Avatar

Level 2

If you use global binding then this is what happens. In fact, the rationale for global binding is this only. If you just change the binding type, you can get different values. I fail to understand the real use case here. Do you want different values despite using the global binding or you want just different values for each page. If you look in designer you would notice different index of same name fields for different pages.

Avatar

Level 3

Page 1, the user only types texts in the textfields from the group on the top and the two groups below are automatically filled.

Page 2, the user only types others texts in the textfields from the group on the top and the two groups below are automatically filled and so on in the next page.

The data have to be differents on the page 1 and 2.

Below, that's what I want !

form2_Page_1.jpg

form2_Page_2.jpg

Avatar

Level 2

I have designed an XDP file for you. Here I have used calculate scripts to do the job. I hope this helps you. I have shared file http://www.filedropper.com/2page

Avatar

Level 3

wouahh ! I don't know how to thank you enough !

That's perfect ! Thanks a million ! 

Avatar

Correct answer by
Level 2

You are welcome. Can you please mark this question as answered.

Avatar

Level 3

Hello Ragha,

  Given your XDP wonderfully works, I prefer keeping this procedure and redoing my form with multiple pages.

But there is  a hidden business card (visible for me with a password) which is linked to the page 1 and contains the informations, then another card linked with the page 2, and so on...

Before with the binding global data, it was OK. No more now, of course !

So, how can I link for binding the page 1 and the business card, etc.

Or, if I create PageArea larger and put the business card inside, how can I print ONLY THIS CARD ?

Your help will be very grateful