Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

html - zendesk console header showing hidden string

I am working with a social integration app that the user can message to our facebook page and it will create a ticket in zendesk console. However I added some condition for the end user to not let the api trigger by using this tag : {^%endusers%^}} . Zendesk navigation will show the name of the facebook user follow by the last message. Here is what happen:

enter image description here

Inside the console itself the text was hidden:

enter image description here

I already set the display to none for it and here is the code:

   public static final String hiddenTriggerText = "<span style='display:none'>{{^%endusers%^}}</span>"

and here is the json body that will append the tag to every end-user message to not let the api trigger:

 {
                    "ticket": {
                        "tags": ["$GeneralConstant.TicketTag","$GeneralConstant.ticketFacebookTag"],
                        "requester_id": ${passedFacebookJsonDataReq.zendeskId},
                        "external_id": "${passedFacebookJsonDataReq.userId}",
                        "status": "${zendeskFormattedTicketStatus}",
                        "comment": {
                        "html_body": "${commentRemarks} ${GeneralConstant.hiddenTriggerText} ${facebookInputMessageTextFormatted}", "author_id": ${passedFacebookJsonDataReq.zendeskId}
                        }
                    }
                }

question from:https://stackoverflow.com/questions/66057165/zendesk-console-header-showing-hidden-string

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...