Buy Now
Sign in

1 record limit per User and Form

marcq , November 21 2014, 12:52
marcq 45
November 21 2014, 12:52 #339352

I have create my first Chronoform with database connection and it works like a charm ! I can save my data into my database (incl. the user_id). Great component !

Now I would like to limit my Chronoform to 1 record per User and Form. After having created 1 content, User should only be able to delete or update is content.

Thanks in advance for your support.


calculus00 1
November 21 2014, 12:52 #339353
Hello marcq,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I ask new users for information and not ask logged in users?
P.S: I'm just an automated service
I'm an automated service, my answers may help, but they may not be accurate.
GreyHead 64
November 26 2014, 15:51 #339628
Hi Marc,

In the On Load event you will need to add a DB Read and use that to check if there is already a record for the current user. Then you can pre-load that data if it exists.

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
marcq 45
December 01 2014, 13:25 #339862
Hi GreyHead,

Sorry for the late response and thank you for your reply. BNDragon helped me a few hour to solve some issues I had among other this issue concerning DB record limitation.

I understand now how it works. A great module you have here GreyHead! Congratulations

In order to help other fellows I have created a new topic called "Create a Form to insert/saveand update data in your database" in the forum "ChronoForms How To".

People can find a PDF file which explain how to create such a form and also a Chronoforms form backup they can upload.

Thanks again for your support.

Have he nice week, cheers, Marc