• I have successfully inserted a new field. Blow is what that code looks like.

    `//define the fields
    $fields = array();
    $fields[] = new PMProRH_Field(
    “your school”, // input name, will also be used as meta key
    “text”, // type of field
    array(
    “size”=>50, // input size
    “class”=>”school-field”, // custom class
    “profile”=>true, // show in user profile
    “required”=>true // make this field required
    ));`

    The field shows up fine but the system prompts me that it is required even though text has been entered. Why would this happen? The “your school” field is the only field I’ve added.

    I’m stuck.

    • This topic was modified 8 years, 4 months ago by Scott Fichter.
Viewing 1 replies (of 1 total)
  • Hi there!

    Thank you for getting in touch with us!

    The one issue I see with the code is that the MetaKey is two seperate words.

    Could you try changing this “your school”, // input name, will also be used as meta key
    to this “your_school”, // input name, will also be used as meta key

    Let me know if this works,
    Trav

Viewing 1 replies (of 1 total)
  • The topic ‘Fields Show Up Fine But…..’ is closed to new replies.