• 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: Auto Populate from Article

Auto Populate from Article 10 years 4 months ago #29852

  • Rici
  • Rici's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Hello to all
I am new in this Forum and Compliment to RSForm team
I have 3 question and if some one can help Thanks
1. How to auto populate some filds in rsform pro from article ( I want to have one Form for all Articels buth want to know wich Article is )
2. How to edit margin between column in Form

I have search all Forum to find answer on my questions buth noth lucky

Thanks for Help
The administrator has disabled public write access.

Auto Populate from Article 10 years 4 months ago #29876

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
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: Rici, chappuis

Auto Populate from Article 10 years 4 months ago #29878

  • Rici
  • Rici's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
First Thank yoo

Must I have hidden field in form and if I click button that redirect me to form will form know from which article coming request

Thanks for answer
The administrator has disabled public write access.

Auto Populate from Article 10 years 3 months ago #29929

  • Rici
  • Rici's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Hello

so I have create my Form and putted the code created hidden field buth nothing
what value must give hidden field that recognize the title

can you explain step by step because I am noth good in programing

Thanks for help
Last Edit: 10 years 3 months ago by Rici.
The administrator has disabled public write access.

Auto Populate from Article 10 years 3 months ago #29930

  • Rici
  • Rici's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Thanks for your support
The administrator has disabled public write access.

Auto Populate from Article 10 years 3 months ago #29931

  • Rici
  • Rici's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Guys

Product is very good and commpliment buth support is very bad no answers no nothing and I think that I will move to another product that have better suport because this moderator help was only linking to code and no explayn how to use


Thanks for RSForm for help
The administrator has disabled public write access.
The following user(s) said Thank You: Roberts

Auto Populate from Article 10 years 3 months ago #29942

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Hello, I apologize you feel this way, however please note that there is no copy paste solution for your scenario. My colleague gave you 2 articles that were more than enough information for you to get started on your project.

I will try to explain a bit more.

Changing the style of your form can be done by following this guide:
https://www.rsjoomla.com/support/documentation/view-article/600-how-to-perform-layout-and-style-adjustments.html

Please note that you will need to have at least some basic CSS/HTML knowledge

Retrieving information from an article, information regarding this can be found here:

https://www.rsjoomla.com/support/documentation/view-article/995-get-content-article-information-with-an-rsformpro-form.html

The above mentioned article provides basic snippets to retrieve various information from your article, but as I have said earlier, it's not a copy/paste solution and proper PHP/SQL knowledge will be needed.

If you encounter any issues, you can post what you tried to do (an accurate description is needed), and I will try guiding you through the process.

PS: Please note that we do not provide support on the forums, tech-support is granted here: http://www.rsjoomla.com/submit-a-ticket.html and also, please take in account our working hours (can be found in our Support Policy)
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 10 years 3 months ago by cosmin.cristea.
The administrator has disabled public write access.

Auto Populate from Article 10 years 3 months ago #29971

  • Roberts
  • Roberts's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 54
  • Thank you received: 1
Re: Getting the article's title

This code does not work despite creating various fields both hidden and otherwise.
Last Edit: 10 years 3 months ago by Roberts. Reason: Unable to paste code
The administrator has disabled public write access.

Auto Populate from Article 10 years 3 months ago #29992

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
The following code works as intended, place your form in an article (using the content or system plugin {rsform id_of_form}) and after that create a hidden field in your form and insert this in PHP scripts called on form process:
$articleid=JRequest::getInt('id');  //gets the article's ID from the URL
$db = JFactory::getDBO();  //opens a new database connection
$db->setQuery("SELECT `title` FROM #__content WHERE `id`='$articleid'");
//gets the article's title based on its ID
$result=$db->loadResult();
if($result){
$_POST['form']['hidden']=$result;  //assigns the article's title as the hidden field's value
}

I can assure you that the hidden field will be populated with the article's title
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: chappuis

Auto Populate from Article 4 years 10 months ago #40261

  • chappuis
  • chappuis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi,

Maybe it would be just as well to give an example to extract the CustomFields from the article. It'd be super cool to use.
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!