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?


  1. expat
    Member

    Hi there, how can i make form name to be unique, basically checking the Id against the name

    Posted 15 years ago #
  2. yuniar

    Do you mean you don't want to have two forms with the same name?


    MachForm Founder

    Posted 15 years ago #
  3. expat
    Member

    thats correct no forms should have same name; how can i do it?

    Posted 15 years ago #
  4. AMurray
    Pro Member

    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 #

RSS feed for this topic

Reply