block-lab icon indicating copy to clipboard operation
block-lab copied to clipboard

Add a default value option to fields that use fetchInput.

Open lukecarbis opened this issue 6 years ago • 2 comments

It should be possible to set the default value for posts, taxonomies, and users.

lukecarbis avatar Apr 17 '19 20:04 lukecarbis

Hi @lukecarbis, Were you thinking of an <select> to choose the post, taxonomy, or user?

For example: post-fieldhere

We'll probably have to consider cases with many posts, maybe thousands.

The simplest way to do this would be to accept a post ID in the <input>, but that probably wouldn't be very intuitive.

kienstra avatar May 03 '19 23:05 kienstra

I guess I was thinking of something similar to what we're showing in the editor. Maybe a select2 or something along those lines?

lukecarbis avatar May 06 '19 00:05 lukecarbis