Hello All, I'm fetching the fields of content fragment at the component level, after authoring the content fragment path in authoring dialog and whenever I'm publishing the page, Its always showing as content fragment model as outdated. Even though content fragment is published already and doesn't h...
sure @kautuk_sahni For checkbox1 I have granite class as cq-dialog-new-checkbox-showhide.For checkbox2 I have granite class as cq-dialog-checkbox-showhide. Here's my script:(function (document, $) {"use strict";// when dialog gets injected$(document).on("foundation-contentloaded", function (e) {// ...
Hi @Saravanan_Dharmaraj Thanks for the reference but I have already checked that post, In my case I'll have to compare 2 number fields and validate.For the first approach:I was able to write custom JS for the same but I'm facing issues while increasing/decreasing value through scroller(mousepad) sin...
Hi All, I'm trying to compare 2 number fields in content fragment through custom js. So based on that validation I'll have to display an error message. So for that I'm making use of Granite.I18n.get.Can anyone help me in setting up the Granite.I18n.get message to a specific field in content fragment...
@Sady_Rifat Thanks for that, but the script you have provided is also behaving like my script. where when I check one of them or both checkboxes the target is showing, but when I disable one checkbox the target isn't showing.
@Sady_Rifat Please find the dialog XML code related to showhide. <checkbox1granite:class="cq-dialog-checkbox-showhide"jcr:primaryType="nt:unstructured"sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"name="./checkbox1"text="Checkbox1"uncheckedValue="{Boolean}false"value="{Bo...
Hi @Sady_Rifat, This is my checkbox-showhide clientlib's js:(function(document, $) { "use strict"; // when dialog gets injected $(document).on("foundation-contentloaded", function(e) { showHide($("[data-cq-dialog-checkbox-showhide]", e.target)); }); $(document).on("change", "[...
Hello All, I have 2 checkboxes, if either of my checkbox is true, I should show same set of fields. I have tried using granite:class by giving space separated 2 classes but no luck. Does anyone have any idea what I'm missing here. Thanks in Advance!