- πΊπΈUnited States mortona2k Seattle
I just changed the hook and kept the remaining logic in the function.
It's working for entity forms, inline entity forms, and user profiles.
Is there anything else to check to make sure this is actually working?
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
liam morland β made their first commit to this issueβs fork.
- Status changed to Needs review
3 months ago 4:31pm 27 August 2024 - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Patch with current state of merge request.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
The patch in #7 without the test config changes.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
This works for new entities. However, the "Also on update" checkbox does not work because
hook_entity_field_values_init()
only runs on entity creation. For updates a different hook is needed, perhapshook_entity_prepare_form()
. - π¨π¦Canada leducdubleuet Chicoutimi QC
I just tested epp-embedded_forms-3214790-8.patch to set a default value from tokens for a field on a customer profile with Commerce and it is working well!
Thanks!