Display value of text field (URL) in custom_html field in same group

Support MB Group Display value of text field (URL) in custom_html field in same group

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3041
    nermnerm
    Participant

    I have a 'useful links' cloned group: Site field and URL field, I'd like to add a custom_html field with a link using the url field value to the group to view and check the value of url field from the meta box.

    #3042
    Anh TranAnh Tran
    Keymaster

    Hmm, I think it's not possible because the group is cloned and there is no way to attach multiple values of the clones into the meta box array. You can try JavaScript to update the HTML of the custom_html field when the site/url field is updated.

    #3043
    nermnerm
    Participant

    Thanks for quick reply, any further help in regards to the javascript would be greatly appreciated.

    #3046
    Anh TranAnh Tran
    Keymaster

    No problem, here is what I tried:

    https://gist.github.com/rilwis/5c32156d8296efc2a0af4cf27af533bc

    You can change the jQuery selector in the JS file if needed.

    #3062
    Anh TranAnh Tran
    Keymaster

    I will close this topic as it's confirmed to work via email 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Display value of text field (URL) in custom_html field in same group’ is closed to new replies.