I have a custom post with custom field, I want to build a button to generate a code to a custom field when creating a custom post from dashboard. is it possible to do?
Hello. Thank you for contacting the Toolset support.
I'm afraid that there is no such feature exists. You may have to write custom Javascript/jQuery code that could help you to achieve what you need. If you do not know how to do it, I suggest you to contact Javascript Pro who should help you on this custom requirement.
Understood, I may write my own javascript to do, could you tell me how Toolset define the element's name from the dashboard? Is there any standard naming from Toolset?
Yes - that is true. You should not target the element ID but element name.
For example:
jQuery("input[name='wpcf[score]']").change(function(){
/// your code
});
jQuery("select[name='wpcf[my-select-field-slug]']").change(function(){
/// your code
});;