• 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: Check checkbox and receive link to download a file

Check checkbox and receive link to download a file 10 years 9 months ago #28173

  • willkey
  • willkey's Avatar
  • OFFLINE
  • Junior Boarder
  • smart, engaged, and curious
  • Posts: 32
Hello,

I would like to offer a prize (downloaded infographic) for people who fill out my rsform after they have checked the checkbox that signs them up for our newsletter on MailChimp.

Can someone quickly explain this to me?

Thanks,
Will
-- remember where you've been...it helps with where you're going!

:)
The administrator has disabled public write access.

Check checkbox and receive link to download a file 10 years 9 months ago #28190

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
This scenario can be achieved in different ways and you will have to be more specific on how you would like to send the link, you can send it through email, thank you message, etc. You can use the following example and build on it to suit your scenario.

Insert the following code in the Script called before the User Email is sent:
$modUserEmailText = $form->UserEmailText;
 
if($_POST['form']['radio'] == 'Yes')
 
// the line below needs to be changed to suit your needs
 
    $modUserEmailText .= 'Your download link here: http://linktodownload.com';
 
$userEmail['text'] = $modUserEmailText;
$userEmail['text'] = str_replace($placeholders, $values, $userEmail['text']);

More information here:
http://www.rsjoomla.com/support/documentation/view-article/610-php-email-scripts.html
or if you wanna change the thank you message dynamically check the following:
[url]hhttp://www.rsjoomla.com/support/documentation/view-article/602-php-scripts.html[/url]
My help is not official customer support. To receive your support, submit a ticket by clicking here
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!