• 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: Copy from Submitted Form into Same Blank Form

Copy from Submitted Form into Same Blank Form 1 year 6 months ago #43011

  • thchelp
  • thchelp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
RSForm! Pro is such a handy component! I feel like I'm very close to solving this but I need some guidance...

I have a Public form that lets user add their events. We use RSForm! Pro to collect the data and the Article Creation plugin with some CSS formatting to make the articles appear in an event-like list on our site. The issue is that if people have a recurring events, it's a lot of work to keep adding the same data when you just to change the start date and time.

To that end, using this custom scripting article, Display information submitted in a different form, I have modified the Thank You message so that if the user needs to add another event, they can click a link back to the same form and I pull the data from the last submission. I'm at Step 3 where i can see that it pulls the previous data on the form, but I'd like it so that data was in the form fields as values. The only field I would not leave blank is the date and time field so that the user could add a new upcoming date and time.

Where I'm stuck is that I don't know how to accomplish that. Should I be using PHP code in the default values of the form fields to check to see if there is a value present and add it? How would I do that? Or should I try to change the code in the "Script called on form display" to add it? Would I need a button for the user to press to copy the data into the form again?

The user could add many future dates so it's not feasible to have form1, form2, form3, etc. so I'd like to keep using the same form. The form fields are mostly text boxes, but i have one text area field, 1 radio button field, 2 file upload fields.

Thank you, -B
The administrator has disabled public write access.

Copy from Submitted Form into Same Blank Form 1 year 6 months ago #43037

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

As a starting point please refer to the following example from our online documentation:
www.rsjoomla.com/support/documentation/r...e-original-form.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: thchelp

Copy from Submitted Form into Same Blank Form 1 year 6 months ago #43041

  • thchelp
  • thchelp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thank you for the link, this helps!
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!