html-forms icon indicating copy to clipboard operation
html-forms copied to clipboard

Gutenberg support?

Open JeroenSormani opened this issue 6 years ago • 4 comments

Thought about adding a block for GB?

I've been tinkering around to get a bit more familiar with GB; screen recording 2018-05-06 at 02 00 pm

JeroenSormani avatar May 06 '18 12:05 JeroenSormani

Awesome, that looks great! Definitely open to it! Already had a people ask for it, but I haven't been able to look at it just yet.

dannyvankooten avatar May 09 '18 13:05 dannyvankooten

:+1: Only thing I haven't figured out yet is how to get the form names/IDs through the REST API. The CPT is private and don't want to expose them publicly as posts, but also don't want to do a WP_Query and just localize the data on every pageload to get the forms just in case someone wants to use a form on that page..

I was looking for a way to get 'private' CPT data from the API without exposing the data publicly, but doesn't seem this is possible.

Suggestions welcome :-)

JeroenSormani avatar May 13 '18 09:05 JeroenSormani

@JeroenSormani Might be a case where a custom API endpoint with a strong permissions_callback might be appropriate.

chrisvanpatten avatar Oct 09 '18 16:10 chrisvanpatten

How does https://github.com/gravityforms/gravityformsrestapi do it?

lkraav avatar Oct 09 '18 17:10 lkraav