Buy Now
Sign in

1 record limit per User and Form

marcq , November 21 2014
M
marcq 45
November 21 2014 #339352
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
calculus00 1.0
November 21 2014 #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 63.2
November 26 2014 #339628
1
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
marcq 45
December 01 2014 #339862
 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