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.

Post Field - Tags - Default Value Question

  1. Gil Namur
    Member

    Hi All!

    Is there a way to have the tags post field automatically populated with the name (from the advanced name field) of the person making the entry? I don't see an option for that under Default Value. Can I do it using "Allow field to be populated dynamically" and if so, how? Or is there some other way?

    Thanks and cheers,
    Gil

    Posted 12 years ago on Tuesday June 7, 2011 | Permalink
  2. Hi Gil,

    I'm assuming that this is a single page form and that the user would be entering their name and any additional post tags before submitting? If so, you'd need to write some custom javascript that updates the value of the post tags field once the user finishes entering their name. Here is some sample code to get your started.

    http://pastie.org/2034051

    Make sure you update the input IDs with the input's in your form. Also, bare in mind, if the user enters there name, then adds some additional tags, and then changes their name again, it will overwrite the additional tags they added with just the name again. You can customize this to be a bit more user friendly.

    Posted 12 years ago on Tuesday June 7, 2011 | Permalink
  3. Gil Namur
    Member

    Hi David,

    Thanks so much. A bit over my head .. but .. I do have a coder ;-)

    Your assumption was correct by the way. I'll let you know how I make out with this.
    Cheers,
    Gil

    Posted 12 years ago on Tuesday June 7, 2011 | Permalink
  4. Perfect. Good luck, Gil! Let us know how your final solution turns out. :)

    Posted 12 years ago on Tuesday June 7, 2011 | Permalink