Forums

Multi page settings

Elita- 08 Feb, 2019
Hellop, could anybody explain Multipage action settings?


What is Data provider? Should I use {data:} or better {session:multipage} ?
What is "Mix the multi page data with the global data?
and
Clear multi page data?
healyhatman 08 Feb, 2019
Data provider is the array of values you want to save to session. {data:} means everything that just got submitted by the form.
Mix multi page takes everything out of the identified session array and puts it back in {data:}
Clear multi page data..... clears the multipage data.
Identifier is what you want the array of values in session to be called.
Elita- 09 Feb, 2019
Thank you, healyhatman,

So, if i had, e.g., two pages on multipage form with 3 events -
1. load;
2. page2;
3. submit

I should:
1. Put action Multipage on page2 and submit events;
2. leave Data provider as it is by default {data:};
3. check "Clear multi page data" on submit event.

what if I have Read_data function that fill in the fields + some empty fields that should be entered by user? what is Data provider then? How about checkboxes?
healyhatman 09 Feb, 2019
your choice. If you put read data as the provider, you will lose what they entered when you go back. Just try it and find out.
Elita- 09 Feb, 2019
khm. what could be the workaround?
healyhatman 09 Feb, 2019
Ignore the display section's "data provider" section. In every field, under value, put
{session:multipage.fieldname/(var:read_data#.model.fieldname)}
Elita- 09 Feb, 2019
oh thanks! will try that!
This topic is locked and no more replies can be posted.