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.

Is there a way to tie a custom field to a single form to know source?

  1. I am a photographer and would like to use the same form on multiple Senior Model Pages. This is so I can track which Senior Model referred a lead that registers.

    Posted 11 years ago on Sunday May 22, 2011 | Permalink
  2. Yes, you can do this. Implementation depends on what you are trying to accomplish and what data needs to be stored with the form and how it should be used.

    If all you want to do is save a custom field value as a form field value on your form, you can do this using a Hidden Field and the Default Value option under the Advanced Tab when editing the Hidden Field.

    In the default value use this merge code:

    {custom_field:NAME}

    Replace the name with the name/key of the custom field you want to populate the default value with.

    Posted 11 years ago on Monday May 23, 2011 | Permalink
  3. OK, still a little confused here on how to get the individual model name into a field so it shows up in the entries as having been referred by that model.

    On the form itself, I have a hidden field called "ModelName" and the default value of that is "[custom_field:ModelName]".

    Then on each individual model rep page where I am using the form, I have

    "[gravityform id=1 name=StayInformed ajax=true ModelName="Ali"]

    I want to replace the model name on each Wordpress page of that model so that I know which entries are coming from which model.

    Thanks

    Posted 11 years ago on Monday May 23, 2011 | Permalink
  4. You aren't populating the field right. Adding "ModelName="Ali"" to the shortcode isn't going to populate {custom_field:ModelName}. The {custom_field:name} merge code is populated via the Custom Fields of a Post. So you would add a Custom Field to the page/post with the name of ModelName and the value of the name of the model.

    See this screenshot: http://grab.by/acbS

    Please note custom field names are case sensitive. So if you name it ModelName you must use ModelName and not modelname. It's best to use all lower case custom field names so you don't forget.

    Posted 11 years ago on Monday May 23, 2011 | Permalink
  5. Still confused. How do you add a custom field to a Wordpress Page/Post?

    Posted 11 years ago on Monday May 23, 2011 | Permalink
  6. Custom Fields are built in WordPress functionality. They are added when creating a Post in WordPress. There is an area when creating or editing a post for custom fields. It looks like this: http://grab.by/acbS

    If you don't see it when creating or editing a post, it's because it's not turned on in your screen options. Edit or create a New Post and choose "Screen Options" from the top right of the editor and check the "Custom Fields" option. See this screenshot: http://grab.by/acdV

    Posted 11 years ago on Monday May 23, 2011 | Permalink
  7. OK, finally got it all working. Thanks for your help and patience...

    Posted 11 years ago on Monday May 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.