copy the currently selected content type
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!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello!
Try this:
Try this:
Code: Select all
fd.field('ContentType').control()._el().find(":selected").text();
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests