craft-dynamic-fields icon indicating copy to clipboard operation
craft-dynamic-fields copied to clipboard

Is possible to populate dynamic field from another field in the same entry, let's say title?

Open lexislav opened this issue 2 years ago • 3 comments

Would it be possible to populate the dynamic field with value of another field from the containing entry? Something like:

{
   "value":"{{ thisEntry.id }}",
   "label":"{{ thisEntry|e }}"
}

What I need is to add containing entry's title to the list of entries.

lexislav avatar Jul 28 '22 15:07 lexislav

There is some example code in the following thread:

https://github.com/lewisjenkins/craft-dynamic-fields/issues/29

lewisjenkins avatar Jul 28 '22 15:07 lewisjenkins

Thank You!

28. 7. 2022 v 17:35, Lewis Jenkins @.***>:

There is some example code in the following thread:

#29 https://github.com/lewisjenkins/craft-dynamic-fields/issues/29 — Reply to this email directly, view it on GitHub https://github.com/lewisjenkins/craft-dynamic-fields/issues/46#issuecomment-1198318506, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWQ6VL2KIEAWQZCJZHNK4TVWKSELANCNFSM545TTJ2A. You are receiving this because you authored the thread.

lexislav avatar Jul 28 '22 19:07 lexislav

I've seen issue #29 very useful ! However I was wondering if it would be possible to trigger the refresh of the data in the field not based on a full save, but on the (automatic) draft saved draft version.
This would be actually be a killer feature as it would enable to have dependent fields with full flexibility !

timbertens avatar Apr 30 '24 16:04 timbertens