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.

edit form code and database fields

  1. bloew11
    Member

    Hello,

    i really like your form! :) and have 2 questions:

    I would like to show the Submit button after answering 2 questions
    here you can see a example: http://www.mysoundfriends.com/new-song/

    i think with the HTML Field it's not possible? correct? do you have a idea where i can put my JS code?

    another question is about the database: i inserted 2 new fields but they arent shown in the table Posts. where are they saved? and is it possible to save the data in the table "posts" of wordpress?

    thanks
    beli

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  2. You wouldn't add your own JS code. You would use the built in conditional logic. The submit button supports conditional logic so you can show/hide the submit button when a user answers a specific question. Conditional logic only works on drop down, multiple choice or checkbox selections. It's found under Form Settings. You would use that to show/hide the submit button.

    I'm not sure what you are referring to as far as Posts table...

    Gravity Forms by default stores data in it's own database tables, not in the WordPress posts table. These are called Entries and forms always create an Entry.

    To create WordPress Posts you must use the Post Fields. ONLY POST FIELDS CREATE WORDPRESS POSTS. If you aren't using Post Fields, that data isn't stored in the Posts table.

    The Post Fields consist of Post Title, Post Body, Post Category, Post Tags, Post Image and Custom Field. These are the only fields that create data in the WordPress posts table. So if you want to create a Post you need to use these fields.

    If you want to insert the value of fields you have added into your Post Body content you can do this using the Content Template functionality of the Post Body field. The Content Template functions similar to the Notification emails which allow you to insert form field values into the content and they are replaced with the actual field values. The Content Template functionality is available when you edit a Post Body field.

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink