In This Article:

    Only show descriptions in a list of optional groups

    In This Article:

      Background

      A client recently asked if there were a way to hide the group names in an optional group list and leave only the descriptions.  An optional group like this

      2016-06-21_1318.png

      would have the names removed where there are definitions, and would look like this

      2016-06-21_1316.png

      If you'd like to have just the descriptions on optional group selectors like this, then please read on!

      Solution

      The solution is to add a script to your template.  It goes into the template, and not into the page, because the script uses Salsa's native language, SalsaScript, and SalsaScript must appear in a template.  If you'd like this change to affect all of your pages, then simply install it into all of your active templates.  If you'd like this script to only be in one template, then click here to learn how to copy templates.

      Here are some steps that you can use to install the script in a template:

      1. Edit a template.
      2. Use the browser's search tool to locate the </body> tag.
      3. Insert an empty line just before the </body> tag.
      4. Click here to see the page where the solution lives.
      5. When the page appears, click the Raw button.  You'll see a new window with just the solution text.

      2016-02-10_1636.png

      1. Copy the contents of the window and close it.
      2. Return to the template editor.
      3. Paste the copied text into the newly inserted line in the template.
      4. Save the template.
      5. Test!

      Questions?

      If you have any questions, then please gather this information

      Send this information to support@salsalabs.com, and we'll be glad to help.

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request

      Comments

      0 comments

      Please sign in to leave a comment.