Forums

selectoptions to event or dynamic thankyou

mdma 04 Sep, 2015
Hello everyone,

whats the best way to configure /custom php:

1.)there is a list of radio options/select like:
a=a,b=b,c=c,d=d,...
2.)after selection of b and submit,
a thankyou message with html and a predifined link to http://www.b.com. is shown.

my question: how to call an event onB based on selection before.
a=a
I have seen the demo for event switcher: theres a if/else statement for value yes/no=1/0

How to build like this?
<?php
$radio =$form->data("mycheckfield") ;

switch ( $radio ) {
  case 'a':
  default:
    return 'A';
    break;
 case 'b':
    return 'B';
   break;
 case 'c':
    return 'C';
   break;
  case 'd':
    return 'D';
   break;

}
?>
GreyHead 04 Sep, 2015
Hi Mdma,

In the Event Switcher add A,B,C,D in the Events box; click Save and Close; click Edit; click the Load Events button.

Add your PHP.

Bob
This topic is locked and no more replies can be posted.