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

Set Default Time Field


  1. csamuel69
    Member

    I like the feature to set the date to a "default" date to help users filling out a form. Is it possible to set a default time and/or even default it to PM? Currently the time field defaults to blank time and AM. Would like to at least set it to default PM. Is this possible?
    Thanks!

    Posted 10 years ago #
  2. fstaff
    Member

    This should work to give you a "default" time and switch AM to PM. I'm sure you could change default_values, but this seemed to work. Make sure you test.
    \includes\view-functions.php

    Line 2272
    Remove {$selected_am}

    Line 2273
    Replace {$selected_pm} with selected

    Line 2293
    Replace {$default_value_1} with whatever hour you want such as 08

    Line 2297
    Replace {$default_value_2} with whatever minute you want such as 30

    Posted 10 years ago #
  3. csamuel69
    Member

    Perfect thanks I will check it out and test. I appreciate the help!

    Posted 10 years ago #

RSS feed for this topic

Reply