Skip to content

Commit d2b2ac8

Browse files
committed
Readme: "optional" clarification
1 parent 421dd88 commit d2b2ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ ZendeskChat.startChat({
5555
phone: user.mobile_phone,
5656
tags: ["tag1", "tag2"],
5757
department: "Your department",
58+
// The behaviorFlags are optional, and each default to 'true' if omitted
5859
behaviorFlags: {
59-
// This is optional
6060
showAgentAvailability: true,
6161
showChatTranscriptPrompt: true,
6262
showPreChatForm: true,
6363
showOfflineForm: true,
6464
},
65+
// The preChatFormOptions are optional & each defaults to "optional" if omitted
6566
preChatFormOptions: {
66-
// This is optional
6767
name: !user.full_name ? "required" : "optional",
6868
email: "optional",
6969
phone: "optional",

0 commit comments

Comments
 (0)