CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Redirects based on responses within a webform
Pages: [1]

Author Topic: Redirects based on responses within a webform  (Read 378 times)

cmhall42

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal
  • MySQL version: -
  • PHP version: -
Redirects based on responses within a webform
September 04, 2014, 08:53:44 am
I work in digital for a charity which offers resources to others. The charity is quite keen on data collection for evaluation purposes. I have had a request from a team to create a process whereby an individual within a corporate/public body etc registers their details, and then gets sent through to a page where they can chose videos that they can use with groups in the workplace. My thoughts are that this process will look like this:

Webform (Drupal integrated with Civi): Ask for Name, Job Title, Organisation, Sector > Redirect on submission to a 'Choose Your Workshop Form' (encouraging people to bookmark this page so that, should they wish to use it for multiple sessions in their organisation, they can do so without re-registering).
Choose Your Workshop Form: [Description of workshops] Q: How many people are participating in today's session? Q: Which video would you like to watch today?

My question is around options with 'Which video would you like to watch today?' - is it possible to configure this question such that if someone selects 'Video 1' as their response on submitting the form it will redirect them to the video that they would like to watch?

Apologies if this is a very basic question - I am a lay person, not a developer!
« Last Edit: September 04, 2014, 09:03:31 am by cmhall42 »

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Redirects based on responses within a webform
September 05, 2014, 02:46:28 am
Hey there,

I think the answer is yes. On webform/configure you should see an option Redirection location.

You'll see that there is an option to use a custom URL and that "The Custom URL option supports Webform token replacements. Browse available tokens.".

Hence you can use an answer token from civicrm to redirect to URLs constructed to match the answer to the question.

FWIW, this is a webform question as much as a civicrm question so if you are googling more,  wouldn't limit your search to just civicrm forums (though hopefully you'll get some good advice here in any case).
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

cmhall42

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal
  • MySQL version: -
  • PHP version: -
Re: Redirects based on responses within a webform
September 08, 2014, 02:24:16 am
Thanks for this. Good to know that it should be possible. Will keep searching.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Redirects based on responses within a webform

This forum was archived on 2017-11-26.