Dynamic assign values to group field

Support MB Group Dynamic assign values to group field

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5740

    Dear sirs
    I would like to ask about a feature if this is possible, even with custom coding.

    Lets say that I have a dropdown post field (with a list of posts) . I would like when I change the dropdown to fill a repeater field below with some possible fields of this post.
    Is there any possibility of adding group fields dynamically even with JS?

    Kind regards

    #5741
    Anh TranAnh Tran
    Keymaster

    Not sure what you want. Do you mean when changing the post field, another field is populated with it's post field (like post title, post date, etc.)?

    #5745

    No . I am saying the following:

    I have a custom field that is type "post". It is a select dropdown which is populated with all the posts of my blog. Each post has a number of custom fields assigned.

    I would like to know if it is possible when I change the selected values (to select different post title) to get the custom fields associated with that post in one another custom field.

    #5748
    Anh TranAnh Tran
    Keymaster

    I think you can try using JS to listen to the change event of the select2 library (it's fired when you select a post). Then send an ajax request to get the post's custom fields and fill in other fields in the group.

    That's the only way I can think of for now.

    #5749

    Dear Anh, thanks a lot. I will try that 🙂
    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Dynamic assign values to group field’ is closed to new replies.