Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get value from other fields #7

Open
psaikali opened this issue Feb 20, 2020 · 0 comments
Open

Get value from other fields #7

psaikali opened this issue Feb 20, 2020 · 0 comments

Comments

@psaikali
Copy link

I'm about to follow this template to create a new custom field. I'm not sure if the current codebase will allow me to access other CF fields values (from current post) from my new custom field though?

Here is my usage: I have a "Book" post type, and a "Note" post type.
A Note belongs to a specific Book, at a specific position in the Book content.
On the Note post type, I have a CF metabox to select the Book relationship.

Once a Book relationship has been made via a CF field, my new custom field will intercept this relationship field value and load the selected Book content. Then, my new custom field will let the user indicate the exact position for the Note.

So can I access a previous CF field value within another (custom) CF field?

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant