9 years ago
4
Topic

Hello everybody,

I wonder if would retrieve the value of a field in the first stage, example:

I have the name field in the first stage, Category in Second Stage and the ID stage in third.

I would like to retrieve the value of the name field in the second stage, it is possible?

Thank you all .

Get a Book for SEBLOD
9 years ago
1
Level 1

Hi Junior,

you can add an alias of your field for each stage.

For example : 

  • Stage 1 : name_field
  • Stage 2 : name_field_1
  • Stage 3 : name_field_2
  • .....

Each field must have exactly the same storage.


Best regards.

Lionel

9 years ago
0
Level 2

Hello Octopoos - Lionel,

So I tried it but did not succeed, in case I would just like to retrieve the value in the case retrieve the value using the:

<?php cck->getValue('name_field_1'); ?>

But that in the second stage, because from what I understand, click Next he has saved, so I think in retrieving this value.


Thank U.

9 years ago
1
Level 1

Hello Junior,

I think you don't understood what I try to say (my english is not good :) )

in a form with multi stages, each time you click on next, the form is saved.

You define on which stage each fields are available with the option 3 "Stage"

So to have access to a field on each stage, you must have an alias of this field in each stage.

Knowing that an alias of a field is a field with the same storage of the original.

It's something which is working well, and that we use often, so if for you it's not working, it's probably due to the storage of your differents fields.

Regards.

Lionel

9 years ago
0
Level 2

I understood yes, had not worked since I was using a template itself, if selected the template SEBLOD conseui and return the way you said. As my form is simple try to do everything via jquery with own template SEBLOD.

Thank you for your help.

Get a VIP membership