PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

using form inputed value in 2 fields

  1. Hi There

    Im uing gravity form to create custom post upon submit.
    I am alwo using custom fields for that matter

    as far as i can understand in order to do that the user must fill in the title of the post.
    what i want is that the input filled in the title field will also be in a diffrent custom field without the need for the user to fill it out twice

    how can i do that ?

    Posted 12 years ago on Friday February 17, 2012 | Permalink
  2. You can do this using the Post Custom Field and the content template option on that field.

    I did this real quick as a quick test. I added a Custom Field to my form and configured it as a Single Line Text field type. I then configured the Custom Field Name and enabled and configured the Content Template. See this screenshot:

    https://skitch.com/carlhancock/8nw1n/edit-forms-gravity-forms-v1.6-wordpress

    Now select the Advanced Tab while editing your Custom Field and set the Visibility of that field to Admin Only. See this screenshot:

    https://skitch.com/carlhancock/8nw1k/edit-forms-gravity-forms-v1.6-wordpress

    The end result if configured properly is that the Custom Field will be created and the whatever is in the content template will be used for it's value. So if you insert the merge tag for your Title field into the content template, it will use that value. Whatever appears in the content template is what will be used as the value for the custom field when the post is created.

    Posted 12 years ago on Friday February 17, 2012 | Permalink
  3. thanks , that worked just fine ...

    Posted 12 years ago on Saturday February 18, 2012 | Permalink