Appnitro Software Forums » MachForm

Remove AM/PM from Time field

(4 posts)
  • Started 1 year ago by trekmadone2008
  • Latest reply from yuniar

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

    Posted 1 year ago #
  2. 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.

    Posted 1 year ago #
  3. 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 1 year ago #
  4. It will be displayed when you edit the form. However, when you display the actual form/the resulting form, it won't be displayed.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.