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

Remove AM/PM from Time field


  1. trekmadone2008
    Member

    Hello, is it possible to remove the AM/PM mention from a Time field ?

    Posted 14 years ago #
  2. yuniar

    Edit your "includes/view-functions.php" file, search around line 810 - 816:

    <span>
    <select class="element select" style="width:4em" id="element_{$element->id}_4" name="element_{$element->id}_4">
    	<option value="AM" {$selected_am}>AM</option>
    	<option value="PM" {$selected_pm}>PM</option>
    </select>
    <label>AM/PM</label>
    </span>

    simply remove the above code.


    MachForm Founder

    Posted 14 years ago #
  3. trekmadone2008
    Member

    Hello,

    I removed the code but the AM/PM mention still appears when I create a new field ? Is ther something else I should do ?

    Posted 14 years ago #
  4. yuniar

    It will be displayed when you edit the form. However, when you display the actual form/the resulting form, it won't be displayed.


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply