This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Location of Required asterisk


  1. webicine
    Member

    I have a client who would like the "Required Field" asterisk in front of the Field Label rather than behind. Does anyone know where I can edit this in the files? I am comfortable editing code, just need to know where it is.

    Posted 11 years ago #
  2. redityo

    Hi,

    You need to edit includes/view-functions.php file for this, but you will need to change the code on some places for each field.
    You can try to search these code :

    <label class="description" for="element_{$element->id}">{$element->title} {$span_required}</label>

    Then change the code to be like this :

    <label class="description" for="element_{$element->id}"> {$span_required} {$element->title}</label>

    MachForm Support

    Posted 11 years ago #
  3. webicine
    Member

    Thank you. There were a couple of other spots that I had to switch around the {$span_required} {$element->title}, but you pointed me to the exact file I needed.

    Posted 11 years ago #

RSS feed for this topic

Reply