ChronoForms v4 actions

ChronoForms v4 is a major upgrade - especially of the Admin area. This forum is for discussing questions that are specifically related to v4.

ChronoForms v4 actions

Postby GreyHead » Thu Mar 03, 2011 3:48 pm

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
  1. Core Actions
    1. Custom Code
    2. Debugger
    3. Email
    4. Event Loop
    5. Handle Arrays
    6. Show HTML
    7. Show Stopper
    8. Show Thanks Message
    9. Style Form (new in RC 3.4.1)
    10. Upload Files
  2. Validation (added in RC 3.3)
    1. Auto JavaScript validation (new in RC 2.0)
    2. Auto Server Side Validation (new in RC1.5)
    3. Custom Server Side Validation
    4. Email verification Response
    5. Email verification Sender
  3. Anti SPAM (added in RC 3.3)
    1. Check Captcha
    2. Check ReCaptcha
    3. Check Security Question (new in RC 3.0)
    4. Load Captcha
    5. Load ReCaptcha
    6. Load Security Question (new in RC 3.0)
  4. Data Export (new in RC3.4)
    1. CSV Export [GH] (new in RC 3.0, moved in RC 3.4)
    2. XML Export (new in RC 3.4)
  5. DB Operations
    1. Data to Session (moved in 3.5)
    2. DB Record Loader
    3. DB Multi Record Loader
    4. DB Save
    5. Session to Data (moved in 3.5)
  6. Security
    1. Authenticator
    2. Check Fields Hash (new in RC 3.4)
    3. Check Token
    4. Load Fields Hash (new in RC 3.4)
  7. Utilities
    1. Add System Message (new in RC 3.1)
    2. Confirmation Page (new in RC 1.7)
    3. Custom DatePicker [only in the Joomla! 1.5 version]
    4. File Downloader (new in RC 3.0)
    5. Image Resize (new in RC 3.0)
    6. Load CSS
    7. Load Image Upload (new in RC 3.5)
    8. Load JS
    9. Meta Tagger (new in RC 2.0)
    10. Multi Language
    11. Multi Page (new in RC 3.1)
    12. Show Form (new in RC 1.7)
  8. Joomla! Functions (renamed from RC 3.1)
    1. Joomla! Login
    2. Joomla! Logout (new in RC 3.4)
    3. Joomla! Plug-ins (new in RC 3.0)
    4. Joomla! User Registration (includes CB from RC 3.0)
    5. Joomla! User Activation (new in RC 3.21)
    6. Joomla! User Create/Update (new in RC 3.21) [not in the Joomla! 1.5 version]
    7. Submit Article (new in RC 1.5)
  9. Payment Gateways/Processors (new in RC 1.5)
      NOTE: Payment actions may require extra payment.
      These versions are for development and may randomise the amount.

    1. 2CO Listener (new in RC 1.5)
    2. 2CO Sender - Trial (new in RC 1.5)
    3. Authorize.net - Trial
    4. PayPal Listener - Trial (new in RC 1.9)
    5. PayPal Pro = Trial (new in RC 1.5)
    6. PayPal Redirect - Trial (new in RC 1.9)
  10. Power fields (added in RC 3.3)
    1. Autocomplete Loader (new in RC 2.0)
    2. Autocomplete Processor (new in RC 2.0)
    3. Custom Datepicker (new in RC 1.9) [not in the Joomla! 1.5 version]
    4. Custom MooTools Datepicker (new in RC 3.2.1) [not in the Joomla! 1.5 version]
    5. Dynamic Dropdown (new in RC 3.0)
  11. Redirect/Remote Submit (added in RC 3.3)
    1. Curl
    2. HTTP Request (new in RC 2.0)
    3. iFrame Request (new in RC 3.4)
    4. Redirect URL (new in RC 1.8 )
    5. Redirect User (new in RC 1.8 )
  12. Session Data (removed in 3.5 see Data/DB Operations)
  13. Widgets Processors{list=a]
  14. Multi Upload (new in RC 3.5){/list]
  15. ChronoForms Apps (new in RC 3.1)
    1. ChronoConnectivity Return to App (new in RC 3.1)
    2. ChronoConnectivity Task (new in RC 3.1)

I have written some 'advanced' actions that add extra functionality. You can get these from my site here.
  • 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]

Bob
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby GreyHead » Thu Mar 03, 2011 3:59 pm

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
Attachments
load_js_file.zip
(1.93 KiB) Downloaded 483 times
load_css_file.zip
(1.94 KiB) Downloaded 520 times
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby GreyHead » Thu Mar 10, 2011 1:57 pm

The attached action is a slightly modified copy of the standard Upload Files action. It will display as 'Upload Files [GH]'.

This version
  1. Includes an 'Upload path' parameter so that you can set the path to any writable folder.
  2. 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.
  3. 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.
  4. Replaces / or \ in the file path with the Joomla! Directory Separator (DS)

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby raila » Sat Mar 12, 2011 2:08 pm

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!
raila
Fresh Boarder
 
Posts: 4
Joined: Tue Mar 08, 2011 12:24 pm

Re: ChronoForms v4 actions

Postby GreyHead » Sat Mar 12, 2011 2:37 pm

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby raila » Sat Mar 12, 2011 7:02 pm

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.
raila
Fresh Boarder
 
Posts: 4
Joined: Tue Mar 08, 2011 12:24 pm

Re: ChronoForms v4 actions

Postby GreyHead » Sat Mar 12, 2011 9:18 pm

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.
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby GreyHead » Sun Mar 13, 2011 8:42 am

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby raila » Mon Mar 14, 2011 3:53 am

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!
raila
Fresh Boarder
 
Posts: 4
Joined: Tue Mar 08, 2011 12:24 pm

Re: ChronoForms v4 actions

Postby GreyHead » Mon Mar 14, 2011 8:36 am

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby GreyHead » Mon Apr 25, 2011 5:32 am

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.
  • 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. admin@example.com.
  • 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.

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:
  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.
  2. 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.
  3. This action should work alongside the standard Email action if necessary.
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby Tonop » Thu Apr 28, 2011 8:46 am

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!
emailsettings_cr.png
emailsettings_cr.png (77.29 KiB) Viewed 15152 times

emailsettings_dynamic_cr.png
emailsettings_dynamic_cr.png (110.39 KiB) Viewed 15153 times

emailsettings_emailfield_cr.jpg
emailsettings_emailfield_cr.jpg (35.14 KiB) Viewed 15149 times


Boris
Tonop
Fresh Boarder
 
Posts: 6
Joined: Mon Apr 18, 2011 4:36 pm

Re: ChronoForms v4 actions

Postby peacemaker » Mon May 02, 2011 7:02 pm

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
peacemaker
Fresh Boarder
 
Posts: 10
Joined: Fri Mar 18, 2011 6:36 am

Re: ChronoForms v4 actions

Postby GreyHead » Tue May 03, 2011 9:12 am

Hi Tonop,

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

Bob
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: ChronoForms v4 actions

Postby GreyHead » Tue May 03, 2011 9:16 am

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31975
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Next

Return to ChronoForms v4

Who is online

Users browsing this forum: No registered users and 5 guests

 

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 15 minutes)
Most users ever online was 441 on Sat Jul 14, 2012 10:55 am

Users browsing this forum: No registered users and 5 guests

Current time

It is currently Fri May 24, 2013 8:57 am