Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Regarding AEM Sightly.!

imadullakhan
Level 3
Level 3

Hi all,

 

I have some button in html like " <a href="#" class="btn btn-default stackbannersubmit">ENROL NOW</a>" When i pass the Value of 'ENROL NOW' that time only the button should need to visible. if i don't pass any value or 'ENROL NOW' it should't show any button. For that what i have to do, can any one help here.? 

1 Accepted Solution
praveenk9057427
Correct answer by
Level 2
Level 2

Hi,

if you are passing value to button from dialog you can use "data-sly-test" in sightly to if value is provided or not and show button.

<a data-sly-test="${properties.<field name>}" href="#" class="btn btn-default stackbannersubmit">ENROL NOW</a>

View solution in original post

1 Reply
praveenk9057427
Correct answer by
Level 2
Level 2

Hi,

if you are passing value to button from dialog you can use "data-sly-test" in sightly to if value is provided or not and show button.

<a data-sly-test="${properties.<field name>}" href="#" class="btn btn-default stackbannersubmit">ENROL NOW</a>

View solution in original post