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

Image title


  1. alwaysmee
    Member

    hello there,

    thanks for this software, very worth the money...

    I have a small issue

    in any field label, if you use a normal image tag it will work
    i.e <img src="images/title.gif" alt="" />

    However the only field that i really want to use an image for does not work, and that is the form title field!

    i guess because it limits me to a certain amount of characters? is there a current fix to use an image as the title of the form? (not the description field)

    thanks

    Posted 15 years ago #
  2. redityo

    Hello,

    I see .. maybe your image "tag" bigger that 50 character, that's why you can't insert the image tag, since machform only allow 50 characters.
    Anyway you can do some modification to make the limit size bigger, to do so you need to edit "edit_form.php" and "db-functions.php" file. Try to follow these steps :

    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">

    replace with this

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

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

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

    change it to

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

    MachForm Support

    Posted 15 years ago #
  3. alwaysmee
    Member

    thank you it worked, nice easy instructions thanks

    Posted 15 years ago #

RSS feed for this topic

Reply