Expand my Community achievements bar.

SOLVED

Hide/Show Pages Based On Dropdown Selection

Avatar

Former Community Member

Hello,

This one is driving me crazy. In this form (attached) I have 3 checkboxes and based on what is checked, I want to hide the first page and navigate to the 1st checked box. It works for the Web Chat option, but all others do not. Also, on the next button from the Web Chat page, when I click next, I have an alert pop that should only show if Web Chat is the only selection chosen, but it shows no matter how many selections are made from the checkboxes.

As always, any help is appreciated!

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi, check if it's working properly now.

Dallas

View solution in original post

5 Replies

Avatar

Former Community Member

Have a look at the attached form and tell me if its what you were wanting to do. I think I understood your post right. The alert was popping up because you had || comparisons instead of && comparisons in your if statements.

Avatar

Former Community Member

Hello,

That took care of the popup issue, but the navigation is still a problem. For some reason choosing any option from the checkboxes and any option from the Type of setup dropdown always brings me to either a blank page or the Web Chat page.

Thanks for looking into this, hopefully you (or another member) can assist with this issue as well.

Avatar

Correct answer by
Former Community Member

Hi, check if it's working properly now.

Dallas

Avatar

Former Community Member

It works great! What did you have to do to make the web chat and email options work? I don't see a difference in the code from the dd.

Avatar

Former Community Member

Hi,

You had set those pages to start on a new page in the Pagination tab. they needed to be set to follow previous to avoid the blank pages from showing.

Dallas

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----