Problem/Motivation

Non-coders don't know which properties a given field has.
There are lots of issues that are essentially support requests for this.
(Todo: Postpone them all on this issue.)

Proposed resolution

Provide the field properties info in the help text of our settings.

Remaining tasks

tbd

Issue fork epp-3551692

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

geek-merlin created an issue. See original summary.

ressa’s picture

Thanks for showing understanding to non-coders :)

As a quick win, the first line in the project page description could also be updated to cover both coders and non-coders?

"Prepopulate any node or term field (or any entity) with Token values."

Personally, I would always search for "node token prefill" or something like that, I have never searched for the word "entity", like most non-coders as well.

vitaliyb98 made their first commit to this issue’s fork.

vitaliyb98’s picture

Status: Active » Needs review
StatusFileSize
new94.95 KB

As a start, I added a draft functional which shows all available properties for the current field Screen

Need to discuss the next thing:
- Maybe there is a better form to describe property, currently used in such a format: <b>@label</b> — machine name: <i>@machine_name</i> (type: @type) Example: Summary — machine name: summary (type: string)
- Currently, all available properties of the field are displayed, even if some of them will never be used for prepopulating.

geek-merlin’s picture

Looks like a good start! Natural next steps (and imho all we need here) are:
- Change the list format to sth like this (the machine name is the main interesting thing, so comes first):
- format: Text format - Add description here if there is one.
- Filter out irrelevant properties: isInternal(), isReadOnly(), isComputed() (which here kicks out the processed-properties).

vitaliyb98’s picture

StatusFileSize
new76.75 KB

@geek-merlin, I made a change according to your comment, looks better:

Screen

geek-merlin’s picture

Status: Needs review » Reviewed & tested by the community

So then it's good to go!

vitaliyb98’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 8.x-1.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.