fjaroli

ScreenJson

Oct 22nd, 2025
603
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.48 KB | None | 0 0
  1. {
  2.   "routeName": "student",
  3.   "screenName": "Add Student",
  4.   "submitPostUrl": "https://example.com",
  5.   "entityConfigs": [
  6.     {
  7.       "jsonKey": "name",
  8.       "code": "STUDENT.NAME",
  9.       "uiConfig": {
  10.         "label": "Enter Name",
  11.         "type": "UI_CONFIG_TYPE.TEXT_INPUT",
  12.         "subType": "UI_CONFIG_SUB_TYPE.SHORT_TEXT",
  13.         "options": null,
  14.         "validationRules": {
  15.           "isMandatory": true,
  16.           "regEx": "^[A-Za-z\\s.,!?'\"-]*$"
  17.         }
  18.       }
  19.     },
  20.     {
  21.       "jsonKey": "gender",
  22.       "code": "STUDENT.GENDER",
  23.       "uiConfig": {
  24.         "label": "Select Gender",
  25.         "type": "UI_CONFIG_TYPE.RADIO_OPTION",
  26.         "subType": "UI_CONFIG_SUB_TYPE.SINGLE",
  27.         "options": [
  28.           {"label": "Male", "code": "GENDER.MALE"},
  29.           {"label": "Female", "code": "GENDER.FEMALE"},
  30.           {"label": "Other", "code": "GENDER.OTHER"}
  31.         ],
  32.         "validationRules": {"isMandatory": true, "regEx": null}
  33.       }
  34.     },
  35.     {
  36.       "jsonKey": "class",
  37.       "code": "STUDENT.CLASS",
  38.       "uiConfig": {
  39.         "label": "Select Class",
  40.         "type": "UI_CONFIG_TYPE.DROP_DOWN",
  41.         "subType": "UI_CONFIG_SUB_TYPE.SINGLE",
  42.         "options": [
  43.           {"label": "First", "code": "CLASS.FIRST"},
  44.           {"label": "Second", "code": "CLASS.SECOND"},
  45.           {"label": "Third", "code": "CLASS.THIRD"}
  46.         ],
  47.         "validationRules": {"isMandatory": true, "regEx": null}
  48.       }
  49.     },
  50.     {
  51.       "jsonKey": "subject",
  52.       "code": "STUDENT.SUBJECT",
  53.       "uiConfig": {
  54.         "label": "Select Subjects",
  55.         "type": "UI_CONFIG_TYPE.CHECK_OPTION",
  56.         "subType": "UI_CONFIG_SUB_TYPE.MULTI_SELECT",
  57.         "options": [
  58.           {"label": "Hindi", "code": "SUBJECT.HINDI"},
  59.           {"label": "English", "code": "SUBJECT.ENGLISH"},
  60.           {"label": "Science", "code": "SUBJECT.SCIENCE"}
  61.         ],
  62.         "validationRules": {"isMandatory": true, "regEx": null}
  63.       }
  64.     },
  65.     {
  66.       "jsonKey": "hobbies",
  67.       "code": "STUDENT.HOBBIES",
  68.       "uiConfig": {
  69.         "label": "Select Hobbies",
  70.         "type": "UI_CONFIG_TYPE.DROP_DOWN",
  71.         "subType": "UI_CONFIG_SUB_TYPE.MULTI_SELECT",
  72.         "options": [
  73.           {"label": "Cricket", "code": "HOBBY.CRICKET"},
  74.           {"label": "Music", "code": "HOBBY.MUSIC"},
  75.           {"label": "Painting", "code": "HOBBY.PAINTING"}
  76.         ],
  77.         "validationRules": {"isMandatory": false, "regEx": null}
  78.       }
  79.     }
  80.   ]
  81. }
Advertisement
Comments
  • okahfou
    2 days
    # text 0.14 KB | 0 0
    1. UPTADE
    2. ⭐⭐ Make 3000$ with Swapzone Exchange Method ⭐⭐
    3. >>> docs.google.com/document/d/1IB4SkLZdU8hex0Kn-GyFHXSSV6kLUXhhOhxPwmEuuc4
Add Comment
Please, Sign In to add comment