Recent searches


No recent searches

Autoset CC/Collaborator Field



Posted Feb 29, 2024

I am looking to use JQuery/Javascript to push something into the CC field. I will write code around pulling it from another custom field when that custom field changes, but for now just trying to push something hard-coded into the field to see if I can access it.  Because the CC field is an array, I am having a difficult time. 

 

Here are all my failed novice attempts

            $('.form-field.request_cc_emails').val('test@test.com');
            $('.form-field.request_collaborators_').val('test@test.com');
           $('.request[collaborators][]').val('test@test.com');
            collaborators.push('test@test.com');
            $('.request[collaborators]').push('test@test.com');
            $('.request[collaborators]').val.push('test@test.com');
          $('.form-field.request_cc_emails').val('[test@test.com]');
            $('.form-field.request_collaborators_').val('[test@test.com]');

 

Any thoughts?


1

0

0 comments

Please sign in to leave a comment.

Didn't find what you're looking for?

New post