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.

When creating posts, auto-create a title if field left blank. E.g. Post #225

  1. Hi there,

    I have a form that allows people to create posts which are just an image and a title.

    My site focuses more on the image than the title, so rather than make the Title field required, I was wondering if I could auto-create one based on the ID if it's left blank (E.g. Post #225)?

    If it's left blank right now, it becomes "Untitled".

    Thanks,

    Angus

    Posted 11 years ago on Thursday April 18, 2013 | Permalink
  2. David Peralty

    You will want to look at the following hook. You can grab the post ID and then change the Post Title to match. http://www.gravityhelp.com/documentation/page/Gform_after_submission

    Posted 11 years ago on Thursday April 18, 2013 | Permalink