• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Use user names in the multi-page form

Use user names in the multi-page form 11 months 3 weeks ago #42700

  • c.falk
  • c.falk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hello,
I am using a multi-page form and wonder if the following is possible:

On the first page, the visitor enters his first name and last name. Then he clicks on "Next page". There he is addressed directly with his name, which he entered on the first page.

The simple way of using the variable "{name:value}" does not work. Is there a simple solution for this?

Many greetings,
Chris
The administrator has disabled public write access.

Use user names in the multi-page form 11 months 3 weeks ago #42702

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 557
  • Thank you received: 102
Hello,

You can find an example on this topic in this article.
The administrator has disabled public write access.
The following user(s) said Thank You: c.falk

Use user names in the multi-page form 11 months 3 weeks ago #42707

  • c.falk
  • c.falk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Perfect!
But what if I don't want to use Radio-Buttons. Just enter the information in the field on Page 1 and
copy it into the field on page 2?

Sorry, I'm a complete noob with no idea of Javascript or coding.
The administrator has disabled public write access.

Use user names in the multi-page form 11 months 3 weeks ago #42710

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 557
  • Thank you received: 102
Hello,

Although this uses a radio group, you can try a similar approach for two Textbox fields, for example, by using the following JavaScript instead:
<script type="text/javascript">
function copyValue(){
    document.getElementById('second_field_name').value = document.getElementById('first_field_name').value;
}
</script>

Afterwards, edit the 'second_field_name' textbox and add the following to its additional attributes area:
onchange="copyValue();"
The administrator has disabled public write access.
The following user(s) said Thank You: c.falk

Use user names in the multi-page form 11 months 3 weeks ago #42713

  • c.falk
  • c.falk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Yes, that's it!

And now for the "professional class" B)

Is it possible to copy the name inside a "free text"-box?

E.g.: On the first page of the form the customer enters his name into the "name_field". On the second page I greet him with his name
by copying the entry from the "name_field" on page 1 into the Freetext Box.

(He enters as Firstname: "Carl", and on Page two is the Freetext-box, where stand: "Hello Carl!")

Hope you understand what I mean.

Thank you in advance.
The administrator has disabled public write access.

Use user names in the multi-page form 11 months 3 weeks ago #42714

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 557
  • Thank you received: 102
Hello,

You can try the followings:

- in the Free Text field add something similar:

- Hello <span id="idname"></span>

- edit your Name field and add this snippet in the Additional Attributes area:
onchange="document.getElementById('idname').innerHTML = this.value;"
The administrator has disabled public write access.
The following user(s) said Thank You: c.falk

Use user names in the multi-page form 11 months 3 weeks ago #42715

  • c.falk
  • c.falk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Yes!
That is exactly what I was looking for!
Now I can give my Forms a little bit more style and personalty.

Thank you so much for your help!!

All the best to you,
Chris
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!