Advertisement
arundeepak

Collect Details

Mar 1st, 2025
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.45 KB | Software | 0 0
  1. {
  2.   "routing_model": {
  3.     "COLLECT_DETAILS": []
  4.   },
  5.   "data_api_version": "3.0",
  6.   "version": "6.3",
  7.   "screens": [
  8.     {
  9.       "id": "COLLECT_DETAILS",
  10.       "title": "Fill the details",
  11.       "data": {
  12.         "user_name": {
  13.           "type": "string",
  14.           "__example__": "Example"
  15.         },
  16.         "no_of_people": {
  17.           "type": "number",
  18.           "__example__": 1
  19.         },
  20.         "preferred_destination": {
  21.           "type": "string",
  22.           "__example__": "Manali"
  23.         },
  24.         "date_of_booking": {
  25.           "type": "string",
  26.           "__example__": "25 March 2025"
  27.         }
  28.       },
  29.       "terminal": true,
  30.       "success": true,
  31.       "layout": {
  32.         "type": "SingleColumnLayout",
  33.         "children": [
  34.           {
  35.             "type": "Form",
  36.             "name": "form",
  37.             "children": [
  38.               {
  39.                 "type": "TextSubheading",
  40.                 "text": "Help us with your query"
  41.               },
  42.               {
  43.                 "type": "TextInput",
  44.                 "name": "user_name",
  45.                 "label": "Your Name",
  46.                 "input-type": "text",
  47.                 "required": true
  48.               },
  49.               {
  50.                 "type": "TextInput",
  51.                 "name": "no_of_people",
  52.                 "label": "No of People",
  53.                 "input-type": "number",
  54.                 "required": true
  55.               },
  56.               {
  57.                 "type": "TextInput",
  58.                 "name": "preferred_destination",
  59.                 "label": "Destination",
  60.                 "input-type": "text",
  61.                 "required": true
  62.               },
  63.               {
  64.                 "type": "TextInput",
  65.                 "name": "date_of_booking",
  66.                 "label": "planing date",
  67.                 "input-type": "text",
  68.                 "required": true
  69.               },
  70.               {
  71.                 "type": "Footer",
  72.                 "label": "Confirm",
  73.                 "on-click-action": {
  74.                   "name": "complete",
  75.                   "payload": {
  76.                     "user_name": "${data.user_name}",
  77.                     "no_of_people": "${data.no_of_people}",
  78.                     "preferred_destination": "${data.preferred_destination}",
  79.                     "date_of_booking": "${data.date_of_booking}"
  80.                   }
  81.                 }
  82.               }
  83.             ]
  84.           }
  85.         ]
  86.       }
  87.     }
  88.   ]
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement