insert a Not Published record into a Collection using v:create
  • I have simple guestbook with just a message field, and the client wants to be able to approve each guestbook submission before it is published.

    Could the v:create tag utilize the Published field when creating a record? Something like:


    <v:create path="club" Published="Not Published">
    <p><v:text_area path="comment" /></p>
    <p><input id="submit" type="submit" value="say" /></p>
    </v:create>

  • 8 Answers sorted by
  • Try (in the form):

    <v:hidden_field name="disabled" value="1" />

  • nope, it is still inserting as a published item. This is what I tried:


    <v:create path="club">
    <p><v:text_area path="comment" /></p>
    <p><input id="submit" type="submit" value="say" /></p>
    <v:hidden_field name="disabled" value="1" />
    </v:create>



    for this page: http://asianpunkboy.vaesite.com/club

  • As an alternative, you could create a regular checkbox structure in your collection. Maybe call the checkbox "Approved". By default leave it unchecked, then use a little simple if/else logic on the front-end to only show the entries that are checked/approved.

  • Thanks Scott, that is an option, I will do that.

  • Ok. I had no idea if that would have worked or not. Never tried it.

  • We added a new attribute to <v:create>: unpublished="true"

    This will do the trick for the future.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion