Right now when creating a new update the user has to pick a value for the field or fields on an update.
This is fine for many situations but for very common cases like scheduling a publish date the site builder may not want the user to be given a choice about the value of "Publish Status"
They may want the user to just to see a date field labeled "Publish On".
This possible now with the module if:
The default value of "Publish Status" on the Scheduled Update Type is checked.
The field is hidden on form display
Of course that is hard to figure out with documentation.
I will try to make an option to provide a default value on the Scheduled Update Type form if the user is selecting a field there(instead of cloning multiple fields)
Comments
Comment #2
tedbow.
Comment #4
tedbowI have this mostly working in the branch. Can make patch if needed or anyone else can make patch from the branch.
Mostly working but hardcoded for bundle if not coming from "add update field" link.
Comment #8
tedbowok. I have this working now.
Right for now I am limiting the default value widget option to boolean fields, lists and entity reference that target Config entities.
I think for other entities references you could have the problem of exportable Config Entity, Scheduled update Type, referencing a non-exportable entity. This would probably cause deploy headaches. Of course a sitebuilder can do whatever they want on the manage fields page. But that is up to them.
Tagging as needs tests.
Comment #10
tedbowComment #11
welly commentedThere is an issue opened at https://www.drupal.org/node/2693849 which is related to this. It appears the hide field option is broken. More info on that issue.
Comment #12
smustgrave commentedWill check in the related issue.