Question

10
Replies
1584
Views
Swati Damele (dames)
Tetrasoft India Private Limited
Module Lead
Tetrasoft India Private Limited
IN
dames Member since 2014 6 posts
Tetrasoft India Private Limited
Posted: September 11, 2018
Last activity: October 1, 2018
Posted: 11 Sep 2018 5:49 EDT
Last activity: 1 Oct 2018 4:03 EDT
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 Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.