Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

assign unique registration id

Welcome, Guest
Username Password: Remember me

assign unique registration id
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: assign unique registration id

assign unique registration id 2 years, 2 months ago #10014

Is there a way to have an entry be assigned a unique id number when it is entered?

Re:assign unique registration id 2 years, 2 months ago #10052

Hello,

You can add the following code in the Default Value of a Hidden Field (named for example "index" ):

//<code> 
return "REGISTRATION NUMBER-".str_pad(intval(@mysql_result(mysql_query("SELECT COUNT(`SubmissionId`) cnt FROM ".$RSadapter->tbl_rsform_submissions." WHERE FormId=1"),0)),3,"0",STR_PAD_LEFT);
//</code>


Note that you will have change the FormId to the id of your form. Now each submission will be given a registration number equal to their submission number.

Re:assign unique registration id 2 years, 2 months ago #10089

well, this did work. but it seemd to only work on a form with autogenerate layout. so I probably need to manually place the hidden field in the layout?

thanks for the information.
Last Edit: 2 years, 2 months ago by Lauri Komita. Reason: found answer

Re:assign unique registration id 1 year, 10 months ago #10768

We used this for an event registration and it does work. However, we had many problems with duplicate registration numbers when several computers were being used at the same time. How do we make the number assigned be unique/primary?

Re:assign unique registration id 5 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Time to create page: 0.62 seconds
Feedback