#### Appointment { message:"appointment", inputComponent:"rwc-scheduler", vBind:{ name:"rwc-scheduler", buttonLabel:"button", options:[ { label:"`yellow lemon`", value:"30 min", vforkey:"7538cfe2-f7b7-43f5-97d3-0a6453348ca7" }, { label:"`orange pumpkin`", value:"1 hour", vforkey:"3bf70bf9-400b-414a-94a2-c314d69d1ad4" } ], allowMultiselect:false, multiselectQuantity: 3, workingHours:{ to:"5:00 PM", from:"8:00 AM", timezone:{ id:"1", zone:"GMT+00:00", timezoneName:"Etc/GMT" }, timeFormat:"12" }, disableByFunction:true, disableByMf:false, disableByManually:false, disableFunction:'async () => {\n return dayjs(date).day() === 1 || dayjs(date).day() === 5;\n }' } } #### Date { message:'datepicker', inputComponent:'rwc-datepicker', vBind:{ name:"rwc-datepicker", outFormat:"DD-MM-YYYY", startDay:"1", isBlockedDates:true, isSuggestedDates:true, blockedOptions:[ 'function' ], suggestedOptions:[ 'function' ], blockedFunction:'async () => {\n return dayjs(date).day() === 3;\n }', suggestedFunction:'async () => {\n return dayjs(date).date() >= 1 && dayjs(date).date() <= 5;\n }' } } #### Cards { message:"cards", inputComponent:"rwc-carousel", vBind:{ name:"rwc-carousel", scrollDirection:"horizontal", options:[ { image:{ }, title:"`title1`", value:"`1`", video:{ }, cardId:"`1`", hasModal:false, buttonLabel:"`button1`", buttonStyle:"filled", description:"`description1`", submitButtons:[ { label:"`button1`", style:"filled", value:"`button1`", vforkey:"3ed0ae1d-3426-4ef0-a426-b5162c6b1119" } ], vforkey:"80f5afac-802e-4cab-ae91-b3f8a030b61c" }, { cardId:"`2`", image:{ key:"istockphoto-1250315209-170667a.jpeg", path:"istockphoto-1250315209-170667a.jpeg", parentKey:"", _id:"1b5927aa-408b-434d-a6e4-82d31dad9d3c", preview:null, location:"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/istockphoto-1250315209-170667a.jpeg", name:"istockphoto-1250315209-170667a.jpeg" }, video:{ key:"Aug-25-2021 4-59-16 PM.mp4", path:"weight/Aug-25-2021 4-59-16 PM.mp4", parentKey:"weight/", _id:"8e4483f3-a62e-4bd4-a0c6-742f779c57d0", preview:{ url:"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/weight/Aug-25-2021%204-59-16%20PM.mp4", headData:{ metaData:{ }, contentType:"video/mp4", contentLength:141053090 } }, location:"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/weight/Aug-25-2021 4-59-16 PM.mp4", name:"Aug-25-2021 4-59-16 PM.mp4" }, title:"`title2`", description:"``", buttonLabel:"`button2`", value:"`2`", buttonStyle:"default", hasModal:false, vforkey:"abe10563-d707-496f-a82f-8fae5a15b4fc", submitButtons:[ { label:"`button2`", value:"`button2`", style:"default", vforkey:"27a8bdc9-8d20-4771-b37c-c6bd4b574532" } ] }, { cardId:"`3`", image:{ }, video:{ }, title:"``", description:"``", buttonLabel:"``", value:"`3`", buttonStyle:"default", hasModal:true, modalType:"default-modal", childWindowType:"html", additionalContentLink:{ }, html:"html", showModalButtonInUserResponse:true, vforkey:"cc3321bd-4dc3-42f8-9c7c-4e322b29e044", submitButtons:[ { label:"``", value:"`button3`", style:"default", vforkey:"59d927d0-b3cf-4358-a102-e550fb05d1ab" } ] } ], hasOtherOption:false, multiple:false, pagination:false } } #### Dropdown { message:"dropdown", inputComponent:"rwc-dropdown", vBind:{ name:"rwc-dropdown", options:[ { label:"`dropdown 1`", value:"`dropdown1`", vforkey:"d02eee05-b3a5-43a3-9140-03d2b358198a" }, { label:"`dropdown2`", value:"`dropdown2`", vforkey:"8256f947-d4e7-4232-9834-aff0c39b22b9" } ], dropdownPlaceholder:"placeholder", button:"this submit" } } #### Option list { message:"option list", inputComponent:"rwc-menu", vBind:{ name:"rwc-menu", options:[ { label:"`option list1`", value:"`option list1`", vforkey:"892fdeab-7550-4e0b-97ff-3dcbae40a8f0" }, { label:"`option list2`", value:"`option list2`", vforkey:"b2515cf4-c9fc-45bb-aa80-b2f2bcdfe7e5" } ] } } #### Quick reply buttons { message:"quick reply buttons", inputComponent:"rwc-buttons-list", vBind:{ name:"rwc-buttons-list", options:[ { label:"`default`", value:"`default`", buttonStyle:"default", vforkey:"eecfe65d-bf75-4fc3-ab42-c8a448da48db" }, { label:"`filled`", value:"`filled`", buttonStyle:"filled", vforkey:"e8743c48-2f18-4146-b9b9-a40584bbb4ab" }, { label:"`outlined`", value:"`outlined`", buttonStyle:"outlined", vforkey:"8abec499-a1ee-4945-8bd1-c418056844b3" }, { label:"`custom`", value:"`custom`", buttonStyle:"custom", vforkey:"042c0b58-7e4a-49a4-9e75-17b48c034360" } ] } } #### Radio buttons { message:"radio buttons", inputComponent:"rwc-radio-group", vBind:{ name:"rwc-radio-group", options:[ { label:"`radio1`", value:"`radio1`", vforkey:"fac8f021-4f25-4e43-9324-20c4cd7d3f12" }, { label:"`radio2`", value:"`radio2`", vforkey:"9876a735-fb78-4902-9158-2032f4fa8383" } ], defaultValue:"radio2" } } #### Slider { message:"slider", inputComponent:"rwc-slider", vBind:{ name:"rwc-slider", min:"`-100`", max:"`100`", step:"5", unit:"%", unitPosition:"start", mode:"single", useCustomLabels:true, labelFunction:'async () => {\n if (value < 0) {\n return 'cold'\n } else if (value === 0) {\n return 'wtf'\n } else {\n return 'hot'\n }\n }', options:[ { label:"`label1`", value:"`-40`", vforkey:"988ba980-cbc6-4e65-ad56-396425eb0df1" }, { label:"`label2`", value:"`40`", vforkey:"7adb2c94-2586-42fd-9d9c-1ea8a482d940" } ], defaultValue:"-20" } } #### Attachment { message:"attachment", inputComponent:"rwc-attachment", vBind:{ name:"rwc-attachment", isMulti:"1", filesValidation:true, isPrivate:true, allowedFileTypes:[ "JSON", "CSS" ], maxSize:1000, maxSizeOption:"file" } } #### Credit card { message:"credit card", inputComponent:"rwc-credit", vBind:{ name:"rwc-credit", buttonLabel:"Send", cancelButtonLabel:"Skip", termsCheckboxLabel:"I agree with %this%", termsCheckboxLink:[ { location:"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/6168f305888c3d795e67c6de17bf8a21.txt" } ] } } #### Geolocation { message:"geolocation", inputComponent:"rwc-location", vBind:{ name:"rwc-location", buttonLabel:"Send location", useDefault:false } } #### Multimedia { message:"multimedia", inputComponent:"rwc-record", vBind:{ name:"rwc-record", allowedMediaTypes:[ "audio", "video", "screen", "file" ], allowUploadAllMediaTypes:false } } #### Rating { message:"rating", inputComponent:"rwc-rate", vBind:{ name:"rwc-rate", ratePlaceholder:"lalala input", showInput:true, ratingSubmitLabel:"Rate it!", ratingDiscardLabel:"Skip" } } #### Signature { message:"", inputComponent:"rwc-signature", vBind:{ name:"rwc-signature", btnLabel:"Send signature" } } #### Text - numeric { message:"text numeric", inputComponent:"or-textbox", vBind:{ name:"or-textbox", placeholder:"numeric placeholder", textInputType:"number" } } #### Time { message:"", inputComponent:"rwc-timepicker", vBind:{ name:"rwc-timepicker", timeFormat:"auto", blockedTimeRanges:[ [ "08:00", "13:00" ], [ "19:55", "20:05" ] ] } } #### Reorderable list { message:"", inputComponent:"rwc-reorderable-list", vBind:{ name:"rwc-reorderable-list", listTitle:"list title", options:[ { "label":"label1", "value":"value1", "vforkey":"3ca08e68-f593-433d-a658-0580b03e33de" }, { "label":"label2", "value":"valu2", "vforkey":"2ce007f0-f688-416d-9c95-38909744908b" }, { "label":"label3", "value":"value3", "vforkey":"52f15142-447f-4d34-903d-cfef5f6ffbfe" } ] } } #### Video player { message:"video player", inputComponent:"rwc-video", vBind:{ name:"rwc-video", startTime:"0", startTimeTimestring:"``", videoChapters:[ ], autoplay:true, button:"click to submit", video:[ { "location":"https://youtu.be/6_VkTL6O5d4" } ], showInThread:true, poster:[ { "location":"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/istockphoto-495508534-170667a.jpeg" } ] } } #### Audio { message:"audio", inputComponent:"rwc-audio", vBind:{ name:"rwc-audio", startTime:"0", startTimeTimestring:"``", autoplay:true, button:"click to submit", audio:[ { "location":"https://files.staging.api.onereach.ai/public/207599ef-0029-4f8a-9595-3afd71d15392/file(1)_example_MP3_700KB.mp3" } ], showInThread:true } }