Forums

Unique ID [GH] action

santosh.karkhanis 09 Dec, 2015
Wish to display a message (after saving a form) giving a unique registration number.
Can I use ' Unique ID [GH] action' ? Where to get the source file?

$form->data['chronoform_data']['id'], is the unique identifier generated in my joomla database table.
Can I use the same in my display message? How?
GreyHead 09 Dec, 2015
Hi Santosh,

I have sent you PM with a link to download the Action.

Bob
rogeranton 09 Dec, 2015
Hi Bob

Can I get the link to the action as well? I'd like to try it in CFv5.

Roger
santosh.karkhanis 09 Dec, 2015
:? Not able to get the id.
Inserted the action in 'On Load' event.
But not appearing the field in Debug mode.
Also not getting the same in email (which was set at the end of the form).
Both the set-up screen shots are attached.
rogeranton 09 Dec, 2015
You should put it in 'On Submit', before DB Save.

Roger
GreyHead 09 Dec, 2015
Answer
Hi santosh,

Normally, as Roger says, you would use this in the On Submit event to create an ID for a successful submission.

If you want to use it in the On Load event that will work OK but you then need to have a Hidden Input in your form with the same name e.g. uniq_id so that the value is still available to be saved after the form is submitted. Note that if you do that there is a very very small chance that the ID will no longer be unique.

Bob
santosh.karkhanis 09 Dec, 2015
1 Likes
Dear Bob
Yes, you deserve a coffee from me. Thanks for prompt help.
I would like to invite you for a Dinner in Mumbai.
Regards
phicts 08 Jan, 2016
I would like to have this please. Where/how can i get this? TIA.
santosh.karkhanis 08 Jan, 2016
download from joomal chronoforms download page.
Install using i
install action' button at chronogorms page on your site.
Follow the instructions above.
GreyHead 08 Jan, 2016
Hi phicts,

I've sent you a PM with a download link - it's not an 'official' action so you can't download it here. Otherwise follow santosh's instructions to install it.

Bob
phicts 11 Jan, 2016
I've already installed it. There was a message that the action was installed successfully. I couldn't find it in the Designer and Setup tabs. Where or how do I use it?
I tried Googling it but can't find a good tutorial.
GreyHead 11 Jan, 2016
Hi santosh.karkhanis,

You should see a new [GH] Custom Actions button in the Setup tab. Please click the button, then drag a copy into your form On Submit event - then check the Help in the action settings.

Bob
phicts 12 Jan, 2016
I wonder why I can't see anything like that on my installation when it was supposed to be installed.
my specs:
Setting Value

PHP Built On Linux <redacted> 2.6.32-042stab093.4 #1 SMP Mon Aug 11 18:47:39 MSK 2014 x86_64
Database Version 5.5.47-cll
Database Collation latin1_swedish_ci
PHP Version 5.5.30
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.4.8 Stable [ Ember ] 24-December-2015 19:30 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
GreyHead 12 Jan, 2016
Hi phicts,

Please scroll down a bit further.

Bob
phicts 12 Jan, 2016
Where is it exactly please? You got a screen shot?
I already clicked the groups and looked at each one but just couldn't find the GH unique ID action.😟
GreyHead 12 Jan, 2016
[attachment=0]2016-01-12_19-13-44.png[/attachment]
phicts 13 Jan, 2016
Thanks Bob. But unfortunately, there's nothing like that in my Setup tab.😟
What could have happened and what's next? Should I reinstall the action? Uninstall first? Where and how?
GreyHead 13 Jan, 2016
Hi phicts,

Please check that the /administrator/components/com_chronoforms5/chronoforms/actions/unique_id_gh folder exists and has three files in it. If not then something went wrong with the installation. You can unzip the action file and copy the folder to your site if that is easier.

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