최근 검색
최근 검색 없음

Katie Sullivan
가입한 날짜: 2022년 6월 07일
·
마지막 활동: 2025년 2월 28일
팔로잉
1
팔로워
0
총 활동 수
13
투표 수
4
플랜 수
6
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Katie Sullivan
Katie Sullivan님이 에 댓글을 입력함
If you're just looking to increase the height of the dropdowns on the submit a request page, you can add the following to the style.css in the standard Copenhagen theme:
.nesty-panel {
max-height:300px!important;
}
As stated above, the default is 150px
댓글 보기 · 2023년 6월 21일에 게시됨 · Katie Sullivan
0
팔로워
0
투표 수
0
댓글
Katie Sullivan님이 에 댓글을 입력함
Here's a simpler way to enforce that users upload an attachment before submitting a request. These changes should be added to the script.js.
1. Disable the submit button on the form you wish to enforce attachment upload.
const button = document.querySelector('[value="Submit"]');
button.disabled = true;
2. Change the attachments default label to let the user know an attachment is required.
$('label[for="request-attachments"]').html('Attach file template to proceed.');
3. Add an event listener to the attachments area to detect changes, and only enable the submit button (and change warning text) if there is at least one file attached.
document.getElementById('request-attachments').addEventListener('change', function(event) {
var fileInput = event.target;
var fileCount = fileInput.files.length;
if (fileCount > 0) {
attachmentLabel.text("Attachments");
button.disabled = false;
}
});
Here's how it looks on the submit a request page, before and after attachment upload:
Before:
After:
Hope this helps someone else!
댓글 보기 · 2023년 5월 25일에 편집됨 · Katie Sullivan
0
팔로워
2
투표 수
0
댓글