I am trying to:
In a child CRED form to automatically pre select all possible parents from the current logged in author. The goal is that the user cannot select anything, thus that the fields are hidden. Thus in the cred form normally the parent can be selected per CPT like this:
[cred_field field='_wpcf_belongs_parent1_id' value='' ]
[cred_field field='_wpcf_belongs_parent2_id' value='' ]
So the value have to be post id of the the parent written by the current logged in author. For this I made two simple views. The views gives the correct parent post id, but the value field does not accept the view shortcode. It does work when I manually fill in the the post ID returned by my view shortcode.
view shorcode:
[wpv-view name="parent-own-author"]
What I tried:
[cred_field field='_wpcf_belongs_parent2_id' value='[wpv-view name="parent-own-author"]' ]
_How the view looks___________________________________________________
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-id]
</wpv-loop>
<!-- wpv-loop-end -->
On the forum and documentatation I found this:
https://toolset.com/forums/topic/cred-forms-for-child-content-can-you-lock-the-selection-of-parent/
Which is close but does not really achieve what I want.