Home Forums Plugin Support WP User Frontend Pro Set WPUF form default in new posts?

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5958

    jgroob
    Participant
    Post count: 4

    Tareq, how do I set the default WPUF form in new posts created outside of WPUF? I want to do this so I can edit forms created independently of WPUF (using Gravity Forms).

    Is there a meta key, taxomomy, or WPUF function I can use to set the default edit form for new posts?

    #5959

    Tareq Hasan
    Keymaster
    Post count: 2831

    There isn't a function to set the form ID. You can assign a form to a post by setting the meta key _wpuf_form_id to the Form ID of any form.

    #6084

    jgroob
    Participant
    Post count: 4

    Tareq, when I set the meta key _wpuf_form_id using Gravity forms, the default form ID is not set, although I can see the correct value of that key when I manually set the form ID in the post and then use the WPUF editor to view the results.

    Do I perhaps need to manually set a different key at post creation? I do see two new custom fields are now available in the post custom field dropdown menu: wpuf_form and wpuf_form-settings.

    Thanks.

    #6097

    Tareq Hasan
    Keymaster
    Post count: 2831

    So I guess Gravity forms is not assigning the meta key correctly. If it would, the form should've been set and it would use the right form.

    the wpuf_form meta key holds all the items in a form and wpuf_form_settings holds form settings for a form. The forms basically is a custom post type and all it's information are saved on meta keys ๐Ÿ™‚

    #6103

    jgroob
    Participant
    Post count: 4

    Would the correct form of the key be _wpuf_form_id or wpuf_form_id?

    #6106

    Tareq Hasan
    Keymaster
    Post count: 2831

    That would be _wpuf_form_id

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Set WPUF form default in new posts?’ is closed to new replies.