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 have a longer form title?


  1. Markstein
    Member

    Hello,

    I am wondering how I can have a longer form title. I did find "maxlength 50" in edit_form.php. I changed it to 150 which gave me the result I wanted however it caused some problems. Such as when duplicating a form and make changes to the duplicated form the changes would not save. I reverted back to "50" and all works as it should however I need to have longer titles.

    Thank you,

    Mark

    Posted 14 years ago #
  2. redityo

    Hi Mark,

    Have you try the one that I posted in here :

    http://www.appnitro.com/forums/topic/image-title#post-5265


    MachForm Support

    Posted 14 years ago #
  3. Markstein
    Member

    Thanks redityo! Worked perfectly.

    For others wanting to do this you do the following:

    1. Edit your "edit_form.php" and go to around line 652, you will see this code:

    <input id="form_title" class="text medium" value="" tabindex="1" maxlength="50"
    onkeyup="update_form(this.value, 'name')"
     onblur="update_form(this.value, 'name')" type="text">

    Change maxlength="50" to what you desire.

    2. Edit "db-functions.php" and go to around line 51, you will see this code:

    $rules['form_name']['max'] = 50;

    Change the number 50 to match what you input for "maxlength"

    Mark

    Posted 14 years ago #
  4. Markstein
    Member

    Thanks redityo! Worked perfectly.

    For others wanting to do this you do the following:

    1. Edit your "edit_form.php" and go to around line 652, you will see this code:

    <input id="form_title" class="text medium" value="" tabindex="1" maxlength="50"
    onkeyup="update_form(this.value, 'name')"
     onblur="update_form(this.value, 'name')" type="text">

    Change maxlength="50" to what you desire.

    2. Edit "db-functions.php" and go to around line 51, you will see this code:

    $rules['form_name']['max'] = 50;

    Change the number 50 to match what you input for "maxlength"

    Mark

    Posted 14 years ago #

RSS feed for this topic

Reply