最近搜索


没有最近搜索

Matthew Kisow's Avatar

Matthew Kisow

已加入2021年4月15日

·

最后活动2022年2月14日

关注

0

关注者

0

活动总数

4

投票

0

订阅

3

活动概览

的最新活动 Matthew Kisow

Matthew Kisow 创建了一个帖子,

帖子 Q&A - Objects, workspaces, and rules

Utilizing a custom JS listener on the "New Request Page" I want to listen for my "custom field" and set the subject and description based on the selection.  I think I can access this based on the following code and a case or select statement; can anyone tell me if i'm on the correct path.

custom_field_75567587.addEventListener('change', function() { 

     switch (custom_field_75567587.value){
          case conference_room:
          $('.form-field.request_subject').hide(); // Hide subject
          $('.form-field.request_description').hide(); // Hide description
          $('#request_subject').val('Conference Room Setup'); // autofill subject
          $('#request_description').val('test description'); // autofill description
     }

});

 

 

已于 2017年6月05日 发布 · Matthew Kisow

0

关注者

20

投票

31

评论