• 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: Dynamic fields in FREE TEXT field

Dynamic fields in FREE TEXT field 11 years 7 months ago #24861

  • dabears
  • dabears's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I would like to dynamically display the field values from one of the form fields into a free text field that I will be displaying at the bottom of the page. This would be similar to how you can dynamically populate the emails with {field: value}. The difference here is that there is no submit, so it can't be pulling from the DB. The other option that would work is if there was a way to put in a calculated field in the free text field. Example: This is sample text with a {filed:value} that serves as an example.

How do I go about doing this?
The administrator has disabled public write access.

Dynamic fields in FREE TEXT field 11 years 7 months ago #24885

You could try to do the following!
in additional attributes of your first field add

onchange="if (document.getElementById('yourfirstfield').value != ''){
document.getElementById('yoursecondfield').value = this.value;
};"
The administrator has disabled public write access.
The following user(s) said Thank You: contact0223

Dynamic fields in FREE TEXT field 7 years 11 months ago #36995

  • DiGwork
  • DiGwork's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
I have attempted this solution but must be doing it wrong as it doesn't work no matter how I apply it.

Can you either elaborate further.
Is "first field" the dynamic field or the Free text field? in my case "StartDate" is the dynamic field and "Confirmation" is the free text field.
In ('yourfirstfield') do I replace just yourfirstfield or 'yourfirstfield' or ('yourfirstfield') entirely with my field name

eg.

onchange="if (document.getElementById('StartDate').value != ''){
document.getElementById('Confirmation').value = this.value;
};"

or

onchange="if (document.getElementById(StartDate).value != ''){
document.getElementById(Confirmation).value = this.value;
};"

or

onchange="if (document.getElementByIdStartDate.value != ''){
document.getElementByIdConfirmation.value = this.value;
};"

I am not quite sure how to use this solution to get it working.
and if this solution is incorrect could someone else suggest another.

In my case I wish to insert information from three dynamic fields from the first page of the form into a free text field on the final page as a means of confirming details before the user submits.
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!