Set WPUF form default in new posts?

This topic contains 5 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 9 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
July 15, 2013 at 3:09 am 5958
Tareq Hasan 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?
July 15, 2013 at 4:03 am 5959
Tareq Hasan Tareq Hasan

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.

July 18, 2013 at 1:38 am 6084
jgroob jgroob

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.

July 18, 2013 at 4:55 am 6097
Tareq Hasan Tareq Hasan

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 🙂

July 18, 2013 at 10:02 am 6103
jgroob jgroob

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

July 18, 2013 at 2:20 pm 6106
Tareq Hasan Tareq Hasan

That would be _wpuf_form_id

Viewing 5 Posts - 1 through 5 (of 5 total)