• 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: Dropdown - hit submit it will go to Specific URL

Dropdown - hit submit it will go to Specific URL 6 years 2 months ago #38859

I have a question on how to do this

My client is using another file system to get files from there clients (its an accounting firm so we must use a secure software on their own server and can't use RS Joomla Files to do this)
But I'm looking to see if I can use RS Forms to build this

1. The Customer goes to the form
2. They Enter
- Name
- Email Address
- Message
- Then we have a drop down with all the Firms Employees name
(when they hit submit) it will bring them to a URL that was tied to the Employee's name

Thanks
The administrator has disabled public write access.

Dropdown - hit submit it will go to Specific URL 6 years 2 months ago #38870

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.

Dropdown - hit submit it will go to Specific URL 6 years 1 month ago #38909

Yes and no ( I do need this)

But need it to do this

1. Ineed it to email the same EMployee but this is based on your FAQ www.rsjoomla.com/support/documentation/r...d-on-selection-.html
I still have yet to set this up as #2 is working based on my first needs.

2. If You click on the Employee RADIO BUTTON (as per the faq) it will then DIRECT them to a URL AFTER this page based on the FAQ www.rsjoomla.com/support/documentation/r...sers-selection-.html
(We use OWNCLOUD for storing my client's DOCUMENTS on their own server. they can't upload documents to my server I don't want the liability for an accounting firm)
I have this on already working correctly - they click the employee it after submitting it will then open the correct URL based on my radio BUTTOn

www.url.com | NAME EMPLOYEE (this is working) then I go to the form properties and add it to the Return URL

3. So how can I have the Firm MEMBER for the radio for EMPLOYEE go to Email and the URL using both the same RADIO BUTTON. Its like I need 1 and 2 to work together

email | URL | EMPLOYEE NAME

But now how can I add it to the Correct ADMIN EMAIL and parse out the EMAIL address for the EMPLOYEE and still make the URL work.



Thanks
The administrator has disabled public write access.

Dropdown - hit submit it will go to Specific URL 6 years 1 month ago #38914

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
So if i understand correctly if they choose to email employee 1 then on submit you want to redirect to somepage.com and so on for employee 2,3 etc?
if you set up your dropdown (in this case field is called email) like this

john@smith.com|John Smith
mark@me.co.uk| mark X

Then in php scripts/script called after the form has been processed do this
 
if($_POST['form']['email'][0] == 'john@smith.com'){
      $mainframe->redirect('https://www.mysite1.co.uk');
      }
else if($_POST['form']['email'][0] == 'mark@me.co.uk'){
        $mainframe->redirect('https://www.mysite2.org.uk');
        }
 

I made a small test form and this works OK. To add more people just add an 'else' for each employee. If you want to use a radio field remove the [0] after
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
Last Edit: 6 years 1 month ago by iceferret.
The administrator has disabled public write access.
The following user(s) said Thank You: rick.demetrioff

Dropdown - hit submit it will go to Specific URL 6 years 1 month ago #38917

Yes this is what I'm after but I can't get it to work for some reason

Form Fields

Dropdown
- Name: email
- Caption: Our Team
- Items
This e-mail address is being protected from spambots. You need JavaScript enabled to view it | Adam
This e-mail address is being protected from spambots. You need JavaScript enabled to view it | Carrie

Form Properties
Emails
- Sender
From email: {global:mailfrom}
From Name: {global:fromname}
- Recipient
To: {email:value}
- ADMIN EMAILS
- Sender
From Email: Company email

SCRIPTS


Script called after form has been processed

if($_POST[0] == ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it '){
$mainframe->redirect('website.com');
}
else if($_POST[0] == ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it '){
$mainframe->redirect('website.com');
}


Now when i test it out i'm not getting the email for some reason - I'm just using the basic PHP send right now as I know i get all of my Joomla email. Plus the Redirect doesn't work

Not sure what I'm missing

AGain thanks for this
Last Edit: 6 years 1 month ago by rick.demetrioff.
The administrator has disabled public write access.

Dropdown - hit submit it will go to Specific URL 6 years 1 month ago #38918

I just recreated the Form and now I think i got it to work..

its going to the URL and sending out my email

Now to get all of the names and URLS in there to make sure its working

Thanks for this help
The administrator has disabled public write access.

Dropdown - hit submit it will go to Specific URL 6 years 1 month ago #38919

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
Sometimes happens to me too, have to destroy form and start from scratch. Glad you got it working although when you paste example code do it using the button above with the <> in it otherwise you can't see it properly B)
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
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!