This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
How can i make form name unique?
Started 15 years ago by expat | 4 posts |
-
Hi there, how can i make form name to be unique, basically checking the Id against the name
Posted 15 years ago # -
Do you mean you don't want to have two forms with the same name?
MachForm Founder
Posted 15 years ago # -
thats correct no forms should have same name; how can i do it?
Posted 15 years ago # -
There's no inbuilt check to prevent duplicate forms. Indeed, duplicating (making a copy of)the forms is a *feature* of Machform. So you can have two forms with the same name, because the primary key is not the form's name, it's the record ID in the database. When you load a form on a webpage, the field in the query is the id. as in http://www.yoursite.com/machform/view_form.php?id=46
I suppose you'd have to check, manually, that you're not using the same form name (check the list of forms in the form manager when you first log on).
Do you have a huge number of forms, that checking manually for a used name would be tedious task?
Posted 15 years ago #
Reply
You must log in to post.