copy the currently selected content type
Posted: 25 Aug 2017
Hello,
How can I copy the currently selected content type to a text column in a form via Javascript. I have tested the following, but it does not work:
var contenttype_new = fd.field('ContentType').control()._el().find('selected');
var contenttype_new = fd.field('ContentType').control()._el().text();
fd.field('copy_contenttype').value(contenttype_new);
Can you help me?
Thanks!
How can I copy the currently selected content type to a text column in a form via Javascript. I have tested the following, but it does not work:
var contenttype_new = fd.field('ContentType').control()._el().find('selected');
var contenttype_new = fd.field('ContentType').control()._el().text();
fd.field('copy_contenttype').value(contenttype_new);
Can you help me?
Thanks!