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
BedrockMission!

Learn More

View all

Sign in to view all badges

Regarding AEM Sightly.!

Avatar

Avatar
Validate 1
Level 2
imadullakhan
Level 2

Likes

5 likes

Total Posts

51 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Establish
Give Back
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
imadullakhan
Level 2

Likes

5 likes

Total Posts

51 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Establish
Give Back
Boost 5
Boost 3
View profile
imadullakhan
Level 2

02-06-2020

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.? 

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
praveenk9057427
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
praveenk9057427
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile
praveenk9057427
Level 1

02-06-2020

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>