Custom validation for dialog field - Touch UI
Hi guys,
I'm willing to set a custom validation rule for a text field on my component's dialog. And for that i was following this guide:
Adobe Experience Manager Help | Validating Adobe Experience Manager Touch UI dialog values
For some unknown reason this doesn't work for me. There are any additional steps that are omitted in the guide ?
Things I made:
clientlib folder under the component node.
added category property to it.
add a js.txt and a validation.js
changed the name accordingly to my dialog.
I guess I have to include my js into the page somehow ? It's that correct ?
but every time I use <sly data-sly-call="${clientlib.js @ categories='myCateogry'}" /> i get this :
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.sightly.SightlyException: data-sly-call: expression evaluates to null.
My textfield uses granite/ui/components/coral/foundation/form/textfield as resourceType.
