Hi guys,
I have a problem about my ticket asssistance form (not DB).I use Chronoform plugin in joomla.
I need customer receives a simple id number or code number to identify ticket.
So for this I have installed manually CFv4 Unique ID [GH] action
(I have copied the files to the administrator/components/com_chronoforms/form_actions/unique_id_gh folder).
I think I have installed it correctly but I dont'find it in chronoform panel actions (in my setup tab?)
Where is Unique ID [GH] action? How can use it? Do I need to create a Db?
How can i add it to my Submit event?
How can I fix problem to generate an ID code {cf_id} into email template?
Thank you in advance for your cooperation
Alberto
Hi alberto.murgia,
Check the Actions tab of your form and you should see a new [GH] Custom Actions group that you can open to get the action.
Look at the action Help tab for more information.
You will need to save the records to a database table if you want to be sure that the ID is unique. That's also good practice to keep a history of the questions.
Bob
So should I downgrade to Chronoforms V4 component to fix my problem?
Hi Alberto,
To use the Unique ID [GH] action yes that only works with CFv4. CFv5 doesn't have an Install Action icon . . . and I have no idea how to write an action for CFv4.
If you want to stay with CFv5 then you could get the same result with PHP + MySQL in a Custom Code action.
Bob
Hi Bob,
I don't know how to create a php code in Custom Code action. May be php random?
Is it possible to backup my form in CFv5 and restore it in CFv4?
Thanks for your cooperation.
Alberto
Hi Bob,
Thanks for your assistance.
I have installed CFv4 and now I see in my actions panel GH ID and it works correctly: I created a field in my database called "id" and I put this code in the template email {id} so I see my ID number.For my purpose it works properly.But I have to ask 3 more questions to improve my form.
1) I created a db that I related to the form and I added the action db save in my panel action but form doesn't work anymore! What is the exact position you must have db save action after onsubmit? For example my action flow is: on submit>Upload file>unique ID>email> show thanks Message >debugger.
2) I wish my id number in mail template was a progressive number? Is it possible? How can I fix it?
3) user profiling: is it possible that menu of the form fields in chronoform were customized for each user? For example after I logged to my form I see in my dropdown menu items called A-B-C while another user could see dropdown menu items called D-E-F?
Thanks in advance for your support.
Hi alberto.murgia,
1) The order of events looks good.
2) The easiest way to get a serial number is to use the primary key entry from the DB table - if you created the table with ChronoForms that will be the cf_id column.
3) Yes that is possible. I would probably do it using a Custom Code action to get the appropriate options for the current user and add them to the $form->data array, then you can use the Dynamic Data tab in a Select drop-down element to display those options.
Bob