Hey @Kishore_Kumar_! Thank you for detailed explanation.Unfortunately I
need either "Bonus Id" or "Promocode". It depends on content manager
choice during the page creation - my existed script just blocks another
input if any of these both is filled in. Hence, could you say - is it a
way to add my script to the initial clientlibs and define some specific
"granite:class" as selector for this custom clientlib category? It's
obviously that this script shouldn't affect any other templates or
compone...
Hi @Sanjay_Bangar , Yes, I am using the extraClientlibs property, you
can see it in my screenshot 2, but this property only works when I
created a new page and want to change it, and when I create it it
doesn't work.
Hi @Sanjay_Bangar , Your link does not work for me, could you please
check it. Could you please explain in more detail where the client
library for all dialogs is loaded and the category property of your
client library is set to cq.authoring.dialog. Thanks,Alex.
I created a custom script for input validation which checks if another
input has value and if ithas the current input should be disabled.This
behavior is validated by external script that'sconnected through
"extraClientlibs" property in "jcr:root" of the current template
"_cq_dialog"content. And the script works only on those components that
have already been created or if itis edited with templates properties
but when you create a new one the script does not work at thetime of its
creation.Coul...