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

Can I change the label name?


  1. princedomain
    Member

    Hi yuniar,

    May I know if I can modify the Name field?

    Please see the codes below:

    <label class="description">Name <span id="required_1" class="required">*</span></label>
    <span>
    <input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8" value="" />
    <label>First</label>
    </span>

    <span>
    <input id="element_1_2" name= "element_1_2" class="element text" maxlength="255" size="14" value="" />
    <label>Last</label>

    -----
    I would like to change the 'First' to 'Given Name' and 'Last' to 'Family Name' as it's rare to label the field as First and Last name in my country.

    But I couldn't locate the actual form to modify the HTML codes.

    Thanks in advance for your advice.

    Posted 15 years ago #
  2. princedomain
    Member

    Hi yuniar,

    Case closed as I have found the answer from this great forum!

    All I need to do is go to language.php and change the field name accordingly,

    $lang['name_first'] = 'First';
    $lang['name_last'] = 'Last';

    Please correct me if I'm wrong.

    Thanks.

    Posted 15 years ago #
  3. redityo

    Yes .. you're absolutely right :)


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply