We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Disable Link When Chat is Disabled - ContactUs Widget

Received Response
7
Views
2
Comments
edited Apr 17, 2018 2:30PM in Customer Portal 2 comments

Content

Hello! I'm trying to disable a link from my default widget that shows the chat availability of my instance. I saw that there is a widget attribute called "chat_link_always_displayed" and even changing its value, the link still appears. The link should appear only when my chat is available, when it is disabled should not show the link, it should only show the message. How do I make this change?

Code Snippet

             <div class="right-sidebar col-md-3">
			  <h2 class="titulo-1">Atendimento</h2>
                    <h3><span class="icon_chat"></span>Chat</h3>
                    
			<rn:widget path="utils/ContactUs" label_header="" channels="chat" chat_link_always_displayed=false /> 
				
				<?
                $p = substr($_SERVER['SCRIPT_URL'], 0, 17)=="/app/ask_confirm/"?5:getUrlParm("p");
              

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!