Question

10
Replies
1408
Views
dames Member since 2014 6 posts
Tetrasoft India Private Limited
Posted: September 11, 2018
Last activity: October 1, 2018
Closed
Solved

How to change Default Selected Menu Item in Menu Navigation | CRMHC 7.31 on Pega 7.3.1

I am trying to change the default selected Menu item in Menu Navigation.

I am using Primary Navigation (as given in attachment)

I tried explicitly using a Javascript in a section on load of the Section using Menu Navigation as below but no luck :

<script>
pega.u.d.attachOnload(function(){

var elems = $(".menu-format-primary-navigation> li");
var index=2;
index=parseInt(index);
elems.first().removeClass("menu-item-active");
elems.find("li:eq("+index+")").addClass("menu-item-active");

});
</script>

Is there some way to handle this easily whenever required?

Pega Customer Service Low-Code App Development User Interface
Moderation Team has archived post
Share this page LinkedIn