最近の検索
最近の検索はありません

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
コメント
Katie Sullivanさんがコメントを作成しました: