• 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: Help Needed - Programming (php & JavaScript)

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39196

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
I need help creating a form that requires
  • JavaScript
  • php
  • deep knowledge of RSForms Pro
Should be fairly quick - also quick bucks.

I'll send the requirements.
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39208

  • info9615
  • info9615's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi,
We have the needs... Send requirements ;)
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39214

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
Background:
We have all seen/read an article on a site and at the bottom there is:

"Was this information helpful? ( ) Yes ( ) No"

This is what I want to accomplish - but it must be extended.

This will be useful to any / all RSForms Pro subscribers.


I would like to put this at the bottom of most articles:

{rsform 9}

It displays the following - keep in mind - with a well coded, well documented series of scripts, this can be extended...

Was this helpful?
( ) Yes ( ) No ( ) Tell me more ( ) Contact Us [submit]

( ) is a radio button


( ) Yes - the info is stored in the db and the user is redirected to page ABC
( ) No - an accordion type action displays the hidden fields in form 1) email 2) text box - info is stored in db and the user is redirected to page QRS
( ) Tell me more - the info is stored in the db and the user is redirected to page XYZ
( ) Contact us - the info is stored in the db and the user is redirected to contact us page

Now think out of the box.

When the info is submitted to the db, the form information is added

PLUS

ip address - of course
date/time - of course
referring page (the url where the form was placed)
landing page (the url where the user was directed to)

think about it.

Over time, if the visitor completes this form, or {rsform 10}, {rsform 12}, ... when asked:
1) we'll see their activity - how they traversed the site
2) we can add other questions and prompt them to go to a specific page - used as a sales funnel

According to the RSjoomla support staff (Adrian Paciu - top notch support guy) - he understood and said yes it can be done - offered this...


Due to RSForm!Pro flexible nature, various workarounds can be implemented via specialized scripting area (as a drawback, this will require some scripting knowledge). You can however try using RSForm!Pro on this matter and you can setup a similar form:

- add your radio group with your choices.

- when adding your radio items, you can use the pipeline approach to specify a link on your first 2 choices. Example:

Yes|<a href="/link/to/yes.html" target="_blank">Yes</a>
No|<a href="/link/to/no.html" target="_blank">No</a>
Need More

- as you'll need the form to submit, you can use JavaScript for the first 2 choices to also submit your form after clicking your radio group.

- use the conditional fields feature to show your other form elements when "Need More" is chosen:

www.rsjoomla.com/support/documentation/r...ditional-fields.html

- a script will be needed to count results when the form is loaded, assuming you want to display this as well:

www.rsjoomla.com/support/documentation/r...ted/php-scripts.html

Regards!
Last Edit: 4 years 10 months ago by jeffhoneyager. Reason: clarification
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39218

  • info9615
  • info9615's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Then you have to create a form with the fields:
*Radio group: Name-answer, Caption-Was this helpful?, Requiered-Yes, Flow-vertical 4 col,
Items-
Yes|Yes
No|No
More|Tell me more
Contact|Contact us
*Textbox: Name-email
*Textbox: Name-reason
*Submit button: Name-Send
*Hidden field: Name-referer, Default value-
//<code>
return $_SERVER;
//</code>

In Extras>Conditional fields:
*Hide(email) if answer is not 'No'
*Hide(reason) if answer is not 'No'
*Show(email) if answer is 'No'
*Show(reason) if answer is 'No'

In 'Script called on form process':

$app = JFactory::getApplication();
if(isset($_POST)) {
if ($_POST=='Yes') {
$app->redirect(JRoute::_('ABC' , false));
}
if ($_POST=='No') {
$app->redirect(JRoute::_('QRS' , false));
}
if ($_POST=='More') {
$app->redirect(JRoute::_('XYZ' , false));
}
if ($_POST=='Contact') {
$app->redirect(JRoute::_('contact-us' , false));
}
}

This may be a solution. ;)
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39219

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
Do you want to do this for me?

email: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39222

  • info9615
  • info9615's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
We have done now a working example like that:

pronegotec.com/blog/12-herramientas-de-g...on-de-redes-sociales

So test it working.
The administrator has disabled public write access.

Help Needed - Programming (php & JavaScript) 4 years 10 months ago #39225

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
Worked great!

Fantastico!

Would you -
1) export the form and send it to me?
2) send me your paypal email address to thank you even more?
The administrator has disabled public write access.
The following user(s) said Thank You: info9615
  • 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!