1 record limit per User and Form

marcq 21 Nov, 2014
Hi,

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.

Cheers,

Marc
GreyHead 26 Nov, 2014
1 Likes
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.

Bob
marcq 01 Dec, 2014
Answer
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".

http://www.chronoengine.com/forums/posts/f5/t98210/create-a-form-to-insert-saveand-update-data-in-your-database.html

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
This topic is locked and no more replies can be posted.