Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Issues with clientlib execution in dialog participant step

Avatar

Level 4

Hi team, I noticed some issues with loading the clientlib in the dialog participant step. I have created a new component with a dialog to load the required fields in the dialog participant step. However, the fields in the dialog are being loaded in the workflow step instead. My intention is to restrict the user from manually entering text into the text field, and instead use the datepicker to provide input. To achieve this, I have created a clientlib to load if the user completes the step from the workflow inbox. I have added the clientlib to the 'cq.inbox.gui.commons' category, but the script is not manipulating the field as expected eventhough the script is loading. Can someone advise on this?

 

(function ($, document, ns) {
$(document).on("dialog-ready", function() {
$('.cmp-activationdate__editor .coral3-Textfield.coral-InputGroup-input').attr('onkeydown', 'return false');
});
})(Granite.$, document, Granite.author);
0 Replies