This is a new custom cURL action for ChronoForms v4 that adds extra flexibility for advanced users
- Use the action in the On Load or On Submit events to add the
current user information to the $form->data array. The information
can be displayed in the form or used in processing the form results.
Note: This action is for ChronoForms v4 only; it should work with the Joomla! 1.5 and 1.6/1.7/2.5 versions.
To install this action please use the Install Action icon in theChronoForms Forms Manager.
Changelog
29 Apr 2012 : Added User Profile settings for Joomla! 1.6+
Help
This action loads the info for the current user into the form data so that you can use it in the form display or in processing the form submission.
Settings
There are no settings for this action.
Use
If this action is used in the On Load event then:
- The values will be set in any from inputs with names matching the user info names below e.g. name='cfu_username'
- The values will be set elsewhere in the Form HTML using the curly brackets syntax e.g. Hi {cfu_username} provided that the Curly bracket replacer is enabled in the Show HTML action.
If this action is used in the On Submit event then the values can be used in any action that follows this one in the same way as any other form data.
The info
The action will add the following User info into the $form->data array:
Entries for the user record
- $form->data['cfu_id']v
- $form->data['cfu_name']
- $form->data['cfu_username']
- $form->data['cfu_email']
- $form->data['cfu_block']
- $form->data['cfu_registerDate']
- $form->data['cfu_lastvisitDate']
- $form->data['cfu_guest']
- $form->data['cfu_aid']
The three standard user parameters
- v$form->data['cfu_params_language']
- $form->data['cfu_params_editor']
- $form->data['cfu_params_timezone']
An array entry showing any other user parameters that are set
- $form->data['cfu_params']
An array showing any groups that the user belongs to:
- $form->data['cfu_groups']
An array showing any User profile entries:
- $form->data['cfu_profile']