Forums

ChronoForms v4 actions

GreyHead 03 Mar, 2011
Hi,

ChronoForms v4 has a much more modular framework than ChronoForms v3 -- that make it easier to add in extra form elements or form Actions.

Here is a long list of Actions included in the CFv4 RC3.5:
Note: there were changes in the order of the Groups and the location of some actions in RC 3.1 and RC 3.3
[list=1]
  • Core Actions[list=a]
  • Custom Code

  • Debugger

  • Email

  • Event Loop

  • Handle Arrays

  • Show HTML

  • Show Stopper

  • Show Thanks Message

  • Style Form (new in RC 3.4.1)

  • Upload Files
  • [/list:o]

  • Validation (added in RC 3.3)[list=a]
  • Auto JavaScript validation (new in RC 2.0)

  • Auto Server Side Validation (new in RC1.5)

  • Custom Server Side Validation

  • Email verification Response

  • Email verification Sender
  • [/list:o]

  • Anti SPAM (added in RC 3.3)[list=a]
  • Check Captcha

  • Check ReCaptcha

  • Check Security Question (new in RC 3.0)

  • Load Captcha

  • Load ReCaptcha

  • Load Security Question (new in RC 3.0)
  • [/list:o]

  • Data Export (new in RC3.4)[list=a]
  • CSV Export [GH] (new in RC 3.0, moved in RC 3.4)

  • XML Export (new in RC 3.4)
  • [/list:o]

  • DB Operations[list=a]
  • Data to Session (moved in 3.5)

  • DB Record Loader

  • DB Multi Record Loader

  • DB Save

  • Session to Data (moved in 3.5)
  • [/list:o]

  • Security[list=a]
  • Authenticator

  • Check Fields Hash (new in RC 3.4)

  • Check Token

  • Load Fields Hash (new in RC 3.4)
  • [/list:o]

  • Utilities[list=a]
  • Add System Message (new in RC 3.1)

  • Confirmation Page (new in RC 1.7)

  • Custom DatePicker [only in the Joomla! 1.5 version]

  • File Downloader (new in RC 3.0)

  • Image Resize (new in RC 3.0)

  • Load CSS

  • Load Image Upload (new in RC 3.5)

  • Load JS

  • Meta Tagger (new in RC 2.0)

  • Multi Language

  • Multi Page (new in RC 3.1)

  • Show Form (new in RC 1.7)
  • [/list:o]

  • Joomla! Functions (renamed from RC 3.1)[list=a]
  • Joomla! Login

  • Joomla! Logout (new in RC 3.4)

  • Joomla! Plug-ins (new in RC 3.0)

  • Joomla! User Registration (includes CB from RC 3.0)

  • Joomla! User Activation (new in RC 3.21)

  • Joomla! User Create/Update (new in RC 3.21) [not in the Joomla! 1.5 version]

  • Submit Article (new in RC 1.5)
  • [/list:o]

  • Payment Gateways/Processors (new in RC 1.5)[list=a]
    NOTE: Payment actions may require extra payment.
    These versions are for development and may randomise the amount.

  • 2CO Listener (new in RC 1.5)

  • 2CO Sender - Trial (new in RC 1.5)

  • Authorize.net - Trial

  • PayPal Listener - Trial (new in RC 1.9)

  • PayPal Pro = Trial (new in RC 1.5)

  • PayPal Redirect - Trial (new in RC 1.9)
  • [/list:o]

  • Power fields (added in RC 3.3)[list=a]
  • Autocomplete Loader (new in RC 2.0)

  • Autocomplete Processor (new in RC 2.0)

  • Custom Datepicker (new in RC 1.9) [not in the Joomla! 1.5 version]

  • Custom MooTools Datepicker (new in RC 3.2.1) [not in the Joomla! 1.5 version]

  • Dynamic Dropdown (new in RC 3.0)
  • [/list:o]

  • Redirect/Remote Submit (added in RC 3.3)[list=a]
  • Curl

  • HTTP Request (new in RC 2.0)

  • iFrame Request (new in RC 3.4)

  • Redirect URL (new in RC 1.8 )

  • Redirect User (new in RC 1.8 )
  • [/list:o]

  • Session Data (removed in 3.5 see Data/DB Operations)

  • Widgets Processors{list=a]

  • Multi Upload (new in RC 3.5){/list]

  • ChronoForms Apps (new in RC 3.1)[list=a]
  • ChronoConnectivity Return to App (new in RC 3.1)

  • ChronoConnectivity Task (new in RC 3.1)
  • [/list:o][/list:o]

    I have written some 'advanced' actions that add extra functionality. You can get these from my site here.
    [list]
  • Show HTML [GH] : mainly gives access to validation options.

  • CSV Export [GH] : very flexible exporter for database records (included in ChronoForms from RC 3.0)

  • Upload Files [GH] : very flexible uploaded file handler.

  • Load CSS/JS file : simple actions to load script and style files.

  • Email [GH] : very flexible Email action including conditional emails.

  • cURL [GH] : adds Array handling and CURLOPT settings

  • Load user info [GH] : loads the current user info

  • Unique ID [GH] : flexible action to create a unique alphanumeric ID

  • Event switcher [GH] : allows you to change actions depending on the form results

  • Ajax Enabled Dropdown [P} : written by user Petasis allows you to change any form element [/list]
  • [/list]

    Bob
    GreyHead 03 Mar, 2011
    Hi,

    I've written two small new actions for ChronoForms CFv4. They were as much a learning experiment as anything else. They are both very simple but useful: they load either a JavaScript or a CSS file into the page header.

    This allows you to add files without having to add several lines of PHP to a Custom Element

    To install unzip the attached file and upload the folder into the administrator/components/com_chronoforms/form_actions folder. Nothing else should be needed.

    To use drag the Action to the OnLoad Event box, click the configuration spanner icon, then add the full URL of the file you want to load into the input box.

    Note: the action will verify that the entry is a valid URL but will not verify the file type so take care to get the right action and URL.

    Bob
    GreyHead 10 Mar, 2011
    The attached action is a slightly modified copy of the standard Upload Files action. It will display as 'Upload Files [GH]'.

    This version [list=a]
  • Includes an 'Upload path' parameter so that you can set the path to any writable folder.

  • Add the curly replacer to the Upload path so you can use e.g. . . ./folder/{input_name}/ to place the file into a specific folder. Note: to create username folders add a hidden 'username' input to your form HTML.

  • Add the special {form_name} replacer to the Upload path. Useful if you copy forms to avoid having to find and replace the specific form name.

  • Replaces / or \ in the file path with the Joomla! Directory Separator (DS)
  • [/list:o]

    To install unzip the attached file and copy the unpload_files_gh folder to the administrator/components/com_chronoforms/form_actions folder on your site.

    This action should co-exist happily with the standard Upload files action but probably best not to use both on the same file input.

    Note: please treat this as beta code to be used with care!

    Bob

    Please download from here
    raila 12 Mar, 2011
    Thanks Bob.
    I may be having a different issue, because I am doing a test run
    that emails and uploads with this new code. I am testing uploading
    a small jpg file, and I get the email:
    Name raila

    File: test.jpg


    Submitted by 98.222.134.79

    And in the specified directory there is an index.html but nothing else.

    My upload action settings include
    Files upload:jpg
    max 1000
    min 0

    I don't get any errors or messages so how might I debug this?
    Thanks!
    GreyHead 12 Mar, 2011
    Hi raila,

    Does the upload work with the standard File Upload action?

    What file path do you have entered?

    If the index.html file was created then all the permissions should be OK :-(

    Bob
    raila 12 Mar, 2011
    Nope, I have yet to have a successful upload with v4, hence the
    first question about the path. I had lots of success with v3, all
    I had to do was create the form-named directory on the server with v3
    and it worked. But since v4 on the same server and joomla I've yet
    to get one uploaded.
    GreyHead 12 Mar, 2011
    Hi raila,

    Hmmm . . . I've had both versions upload files OK.

    Could be a permission problem - the code in CFv4 doesn't try to set permissions, perhaps it should.

    By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

    Bob

    I'll split this conversation into a new thread.
    GreyHead 13 Mar, 2011
    Hi raila,

    Cracked it. You have to manually add the enctype='multipart/form-data' in the Form Tag Attachment box on the Standard Form Editor - you can't currently set this from the Wizard.

    Click the 'Name' Link from the Forms Manager to access this.

    Bob
    raila 14 Mar, 2011
    Thank you!
    I guess v3 did this automatically from the wizard.

    About upload sizes..... In the wizard I make the file
    upload max 15000 and min 0, this should let me upload
    a 15M file but I'm currently limited to 4M (experimentally determined).
    Is there either a joomla setting or php setting that is getting in the way?

    Thank you!
    GreyHead 14 Mar, 2011
    Hi raila,

    There's a PHP setting. You can check it in Help | System Info| PHP Information | max_file_uploads

    You may be able to increase this in the php.ini file - though most hosts have a maximum set for the server.

    You are right that later versions of CF3 did this from the Wizard. I had a quick look at the Action code and couldn't find any way to change it form there as the Action is only called when the form is submitted. I could write a mini-action for the onLoad event I guess.

    Bob
    GreyHead 25 Apr, 2011
    Hi,

    I've written a modified Email [GH] Action that works a little differently from the standard Email Action. The main differences are listed here. For more information please see the Help tab in the Action Configuration.
    [list]
  • New conditional box enables the Email Setup only if a form input has a specified value e.g. send_email = Yes

  • The File Attachments box is enhanced and will accept one or more input names {input_file_1} or static file paths.

  • The static and dynamic boxes are combined and, for example, the To Email box will accept both input name {email} and fixed email addresses e.g. [email]admin@example.com[/email].

  • Most of the boxes on the Email Setup tab now have default values set (except the To Email box) so are no longer 'required'.

  • The Debug information is much fuller.
  • [/list]
    To use the Email [GH] Action download the attached zip file, open it and copy the email_gh folder to your administrator/components/com_chronoforms/form_actions folder. In the Form Wizard drag an Email [GH] Action to the On Submit event.

    Please get the action here

    Bob

    Notes: [list=1]
  • This was developed with Joomla! 1.5 and may not work correctly with Joomla! 1.6; if you have problems let me know and I'll create a second version.

  • I've tested most functions but the number of possible combinations means that there may still be bugs; please treat as beta code and report any problems you find.

  • This action should work alongside the standard Email action if necessary.
  • [/list:o]
    Tonop 28 Apr, 2011
    Hi Bob!

    Thank you for your work!
    I have installed the Email Action, but it does attach the file.
    And also it does not send the email to submitter (dynmic email) just to me (static email).
    I am using Chronoforms_J1.6_V4_RC1.8.zip. I attached the screenshots to see my settings.

    If you have any suggestions - you are welcome!
    [attachment=2]emailsettings_cr.png[/attachment]
    [attachment=1]emailsettings_dynamic_cr.png[/attachment]
    [attachment=0]emailsettings_emailfield_cr.jpg[/attachment]

    Boris
    peacemaker 02 May, 2011
    Hi Bob,

    I added the email[gh] action and it allowed me to send attached files after email validation success. However, The email message always sends as one block of text and does not break for new lines. Have you experienced this before?

    Regards,
    Peacemaker
    GreyHead 03 May, 2011
    Hi Tonop,

    That looks to me like the standard Email Action and not the Email [GH] action.

    Bob
    GreyHead 03 May, 2011
    Hi peacemaker,

    Is that all the text from the Email template? Or just a block of text from a textarea?

    I think that both Email actions dhould handle these the same way.

    You can add linebreaks in the template (or HTML if you use an HTML email).

    If the problem is with textarea code then you may need to pre-process it to replace linebreaks with <br /> tags. There's a PHP nl2br() function that people have used in the past.

    Bob
    Tonop 06 May, 2011
    Hi GreyHead!

    You are right, I did not install GH Mail correctly. But when I did it on wizard page I got this
    [attachment=0]Wizard_cr.jpg[/attachment]
    and it is impossible to do anything. Where is a mistake?

    Thanks,
    Boris
    GreyHead 06 May, 2011
    Hi Tonop,

    Hmmm . . . may be a Joomla! 1.6 problem. Looks like I haven't installed that action on 1.6 yet. Too many versions of everything :-(

    I'll take a look.

    Bob
    GreyHead 06 May, 2011
    Hi Tonop,

    Here's a Joomla! 1.6 version - please try this and let me know if you find any problems*.

    Bob

    * I have spotted one small bug: the default From Email address is invalid if you are on localhost as it creates an address like info@localhost which doesn't validate as an email address.
    Tonop 08 May, 2011
    Hi Bob!

    It works! You are a virtuoso, thanks!

    Regards,
    Boris
    GreyHead 11 May, 2011
    Hi there,

    I've written and posted here a flexible CSV export action that can be used to export a selection of rows and columns from any table in the Joomla! database.

    Bob
    DJkId007 23 Jun, 2011
    Hello GreyHead,

    I liked your advanced email plugin; simple and fast.

    The standard email has a small bug (don't know if this is intended or it's a known bug); if you want to use the dynamic fields, you also need to put a value in the "to" field on the static tab. Therefore 2 emails end up being sent. This wouldn't work properly if your trying to send 2 different email contents to two different addresses (e.g. admin & customer/visitor)

    Nevertheless, your plugin helped me fix this solution; but I've encountered one small coding error, regarding to sending email as HTML. I've compared your plugin with the standard CFv4 email plugin to see any similarities regarding sending as HTML, and found that you have included the JFilterInput() api inside the $mode code block, this eliminates the HTML coding, and as such the results of the email contents become just a block of text with no line breaks.

    I've implemented a solution which is similar to the standard CFv4 email and decided to let you know should you decide to fix it:

    lines affected: 85-86 in email_gh.php

    remove:
    
        $filter = new JFilterInput();
        $email_body = $filter->clean($email_body, 'STRING');
    


    add after } :
    
    else {
       $filter = new JFilterInput();
       $email_body = $filter->clean($email_body, 'STRING');
    }
    


    Hope this help solving the issue with sending as HTML option being on but not receiving HTML code in the email client.

    P.S: i also have this issue which I can't seem to figure out, I don't use the Multi Language plugin, and have no language strings added to joomla except the standard English language that comes with Joomla:

    Language string failed to load: invalid_address: Language string failed to load: invalid_address: Language string failed to load: invalid_address:


    Thanks.
    GreyHead 25 Jun, 2011
    Hi DShapiroNaples,

    Apologies there is some debug code left in there. I think it is the lines marked here about line 145 of email_gh.php. Comment out or delete the three lines starting $mainframe->enqueuemessage . . .
    		$email_attachments = array();
    		$attachments = trim($email_params->get('attachments', ''));
    		// $mainframe->enqueuemessage('$attachments: '.print_r($attachments, true).'<hr />');
    		if ( $attachments ) {
    			$attachments = explode(',', $attachments);
    			/ /$mainframe->enqueuemessage('$attachments: '.print_r($attachments, true).'<hr />');
    			foreach ( $attachments as $v ) {
    				// $mainframe->enqueuemessage('$v: '.print_r($v, true).'<hr />');
    				if ( !$v ) {
    					continue;
    				}

    I'll issue a revised version in the morning.

    Bob
    GreyHead 26 Jun, 2011
    Hi DJkId007 & DShapiroNaples,

    Thanks for pointing out the bugs. I've updated the download package with a fixed version available here

    Bob
    GreyHead 28 Jun, 2011
    Hi WFederation,

    This is a Joomla! bug :-(. I found a workaround here on the RS Forms site; and a discussion in the Joomla! forums here

    Bob
    GreyHead 30 Jun, 2011
    Hi Wfederation,

    The PHP concatenation operator is . so this line:
    $form->data['to_email_1'] = $loc + '@junewarren-nickles.com';
    needs to be
    $form->data['to_email_1'] = $loc.'@junewarren-nickles.com';

    ( + is the JavaScript equivalent).

    Bob
    GreyHead 30 Jun, 2011
    Hi Wayne,

    Hmmm . . . that sounds like a loop somewhere. I've seen this with CFv4 when there is an OnFail | EventLoop action with the Target Event set to OnSubmit instead of OnLoad. Then it continually refires itself until it runs out of memory.

    Bob
    yvesvella 24 Jul, 2011
    Hello everyone. Sorry for my English very bad.
    How to check my form fields ChronoForms 4.
    I do not know what and where to write the PHP code pourvalider fields.
    Can you help me, I am a beginner and really hard to know how to do and understand
    I think you have to enter a "Server Side Custom Validation," but I do not know how.
    I want to control the form "contract3" to verify that the "Name" field "First name" "address" "email" is well filled
    Thank you for your help
    yves
    GreyHead 25 Jul, 2011
    Hi Yves,

    If you click the 'spanner' icon on the input element (the spanner icon is to the left of the red 'x' on each element).

    On the validation tab you will see a set of checkboxes that you can use to set browser validations.

    Bob
    jmtdesign 25 Sep, 2011
    sorry for my bad english.

    How to get back id of the table Users in a new table.

    When I use "Registration" it creates me a new user.
    I would want got back ID by the new user and to insert him(it) into my table "info_Users".
    GreyHead 16 Dec, 2011
    Hi,

    I've published a new CFV4 action - Event Switcher [GH]

    This allows you to run different actions - or sequences of actions - depending on the results from your form. There are four possible events set up Event A, B, C & D and one of these can be 'activated' by returning 'event_a', or 'event_b', or 'event_c' or 'event_d' from the code box in the action.

    The code box can contain any valid PHP and so can run quite complex switching if you need it. Here's an example with a simple PHP switch statement. The form used has one text input named input_text_0 and a submit button. The switcher code is
    <?php
    switch ($form->data['input_text_0']) {
      case 'email':
        return 'event_b';
        break;
      case 'redirect':
        return 'event_c';
        break;
      default:
        return 'event_a';
        break;
    }
    ?>
    and the actions set up are like this:
    [attachment=0]16-12-2011 12-09-46.png[/attachment]
    If the user enters 'email' in the form text box then an email is sent; if they enter 'redirect' then they are redirected to another page; if they enter anything else then the form is redisplayed. (Event D is not used here.)

    You can download the action from my site here

    Bob
    _Alain_ 07 Jan, 2012

    Hi,
    ...
    To install unzip the attached file and upload the folder into the administrator/components/com_chronoforms/form_actions folder. Nothing else should be needed....

    Bob



    I can't copy anything into "administrator/components/com_chronoforms/form_actions" because I have no permission for the folder even if I'm loged in (loged in with my FTP-Client) as an Administrator. I even can't change the folder Permissions.

    Do you have an idea what I do wrong ?

    Kind regards
    Alain
    GreyHead 07 Jan, 2012
    Hi Alain,

    You'd have to check with your web-host. It's not uncommon for the FTP user to have different permissions.

    If you upgrade CFV4 to RC3.0 you'll find that Max has added an Action Installer icon to the toolbar. This should work provided that the Joomla! user has the correct permissions.

    Bob
    _Alain_ 07 Jan, 2012
    Thank you, now it's installed.
    I did not see the Install Action button :-)

    Kind regards
    Alain
    andyss 10 Jan, 2012
    Hi Bob.

    I get the following error using your Email [GH] action:

    Fatal error: Cannot break/continue 1 level in /public_html/administrator/components/com_chronoforms/form_actions/email_gh/email_gh.php on line 50


    In the action, I've added '{suspect_flag}::0' into the condition box. This error occurs when the field's value is 1 which is set by a CSSV which runs before the Email [GH] action. When I remove the condition from the condition box everything works perfectly.

    I'm on CFv4RC3/J!1.7.3 with your latest Email [GH] action.

    Andy
    GreyHead 11 Jan, 2012
    Hi Andy,

    Bad coding on my part, sorry. I've updated the action on my site and attached a copy here.

    That said I've updated the halep to recommend that you test for strings or numbres greater than zero - you may not get reliable results testing for empty strings, zero or 'false'. This is just because these can all look the same to PHP and the code may not be sophisticated enough to tell the difference between an empty string and a missing string.

    Bob
    GreyHead 15 Jan, 2012
    Hi,

    Here's a new AJAX Enabled Dropdown action from user petasis. He's adapted the Dynamic Dropdown action to allow you to return any valid HTML and insert it into a tag on your page (typically a <div> but it could be any tag).

    Bob
    GreyHead 16 Jan, 2012
    Hi BNRBranding,

    Please try adding a Debugger action to the On Submit event and see what shows up then copy and paste it here. I think I put some diagnostics in there - but I don't remember if there is one specifically for the attachment.

    Bob
    GreyHead 21 Jan, 2012
    Hi BNRBranding,

    What do you have in the File Attachments box?

    Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

    Bob
    GreyHead 22 Jan, 2012
    Hi BNRBranding,

    In the backup copy you sent me you have a URL in the File Attachments box. It needs to be a path.

    I put {#path#}/images/stories/pdf/media_kit.pdf into the File Attachments box and the file was attached correctly.

    Bob
    mojohand 27 Jan, 2012
    HI Bob,
    Sorry being dumb but where to download the actions I would need DB Record Loader and DB multi Record Loader
    thanks
    GreyHead 27 Jan, 2012
    Hi mojohand,

    They are built in to ChronoForms v4. Use the Advanced Wizard, click the Events tab on the right and you can drag them from the boxes on the left into the Events on the right. Click the DB Operations link on the left to see these two.

    Bob
    mojohand 27 Jan, 2012
    Thanks Bob,

    Looks like I will need a little help on this which I will thank with a usual kegs of beer🙂
    What I need is in my form there will be a filed to enter an ID number. When that is done the next few fields(make, model,registration number) will be auto populated based on the id. The db is one of the joomla components'.
    Could you tell me which action to use? So I will start on the right path, and if you have a tutorial on the topic pls🙂
    Thanks very much for helping on this...
    SilentCid 23 Apr, 2012
    Been using the Chrono Connectivity task action to populate my list as well as load a custom CSS. If you use the drop down menu to raise the number of records displayed, or do a search it no longer uses the form or it's css. It more like it actually changes the URL to a chrono connectivity one instead of the form URL. I noticed if you hit next page or previous page it stays on the form URL. Could that be a bug in the action?
    GreyHead 23 Apr, 2012
    Hi silentcid,

    I can only guess that it is a bug, but I really don't yet understand how Max has linked CC and CF together :-(

    Bob
    hildamc 20 Jun, 2012
    Hello
    I have a Chronoform formulary wich need to get some text and transfer the text to a php function to get a reference number. I already have my php function:
    <?php
       function GenReferencia($numero)
       {
       $mult=2;
       $numero = trim($numero);
       $tam = strlen($numero);
       $i=0;
        for($i=$tam ; $i>=1 ; $i--)
       {
          
          $dato = substr($numero, $i-1, 1);
          $resul = intval($dato) * $mult;
         
          if ($resul>9)
             { 
              $otro = trim(strval($resul));   
              $aux1=substr($otro,0,1);
              $aux2=substr($otro,1,1);
              $tot = intval($aux1) + intval($aux2)
              }
          else
             {
              $tot = $resul;
             }
    
             $sumatot=$sumatot + $tot;
             $mult = $mult + 1;
          if ($mult>2)
             {
              $mult=1;
             }
         
       } 
    $maximo = intval(substr(trim(strval($sumatot)),0,1)) + 1;
    $maximo =$maximo * 10;
    $ref = $maximo - $sumatot;
    if ($maximo - $sumatot>=10) $ref=0;
      return $numero.$ref;
    ?>

    The result from the function I have to save into a database and give the user the numer I got.

    But I don't know how to call my php function and where do I set it, and how to save return data to the field.

    Hope you might help me,
    Thanks
    GreyHead 01 Jul, 2012
    Hi hildamc,

    Drag a Custom Code action into the On Submit event of your form and move it up before any DB Save, Email, or Thank you message actions. Add code to it like this:
    <?
    $form->data['numero_new'] = GenReferencia($form->data['numero']);
    // !! copy and paste your function code here !!
    ?>
    Then you can use {numero_new} in the Thank You message.

    Bob
    hildamc 07 Jul, 2012
    Thanks, it works grat🙂
    will 16 Jul, 2013
    I'm trying to have radio buttons in a form, on submit one option will go to URL-a, the other option will to to URL-b. I've installed the CFv4 Event Switcher [GH] action but can't figure out how to add the "return" variable and set it to 'event_a' and 'event_b' respectively. Can I add something in the table code (using Custom)?

    <tr>
            <td colspan="2" valign="top"><label>
              <input name="billing" type="radio" id="billing" value="subscription" checked>
              Monthly billing subscription via PayPal<br>
              <input type="radio" name="billing" id="billing" value="invoice">
              Invoice me for the annual amount
            </label></td>
            </tr>
          
    GreyHead 16 Jul, 2013
    Hi will,

    The Code in the Event Switcher will need to be something like this:
    <?php
    if ( $form->data['billing'] == 'subscription' ) {
      return 'event_a';
    } elseif ( $form->data['billing'] == 'invoice' ) {
      return 'event_b';
    }
    ?>

    Then add Redirect User actions in the two Event boxes and set the urls you need.

    Bob
    will 16 Jul, 2013
    I dropped that code directly into the code box for the Event Switcher and it worked the first time! Thanks so much. Time for a beer🙂
    GreyHead 17 Sep, 2013
    Hi Pierraid,

    I'd remove the actions, you can delete the corresponding folders from /administrator/components/com_chronoforms/form_actions

    I've seen no problems using Email [GH] and Show HTML [GH] on Joomla! 3; it's possible that there is a problem with the Watchman [GH] action but nothing has been reported to me.

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