最近搜索


没有最近搜索

Automatically Populate Subject and Description Based on Drop-Down

已回答


已于 2017年6月05日 发布

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
     }

});

 

 


0

31

31 条评论

Have anyone figured out how to get the suggestion list to show and suggest articles? 

Martin Sachs or William Grote?

0


帖子评论已关闭。

找不到所需的内容?

新建帖子