PeopleVine

Leveraging UserExits to Manipulate the UI (e.g. uncollapse all FAQs)

By leveraging the UserExits in the platform, you can manipulate the UI on page load.  In this example we'll show you how to auto un-collapse all of your FAQs on the out of the box FAQ page.

  1. Setup your User Exits file by following this tutorial.
  2. Under the generalTracking method, you can setup a switch case to watch for the FAQ page by placing the following code in there:
    	switch (item) {
    		case "faq":
    		     $('.panel-collapse:not(".in")').collapse('show');
    		break;
    	}
    
  3. Once you save the customerUserExit.js file, this will now auto open all the FAQs on your /faq page.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.