block.json
95 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "srfm/phone", |
| 5 | "title": "Phone Number", |
| 6 | "description": "Displays a SureForms Phone Field", |
| 7 | "category": "sureforms", |
| 8 | "keywords": [ "telephone", "phone", "mobile", "field" ], |
| 9 | "textdomain": "sureforms", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "example": { |
| 15 | "attributes": { |
| 16 | "preview": true |
| 17 | } |
| 18 | }, |
| 19 | "attributes": { |
| 20 | "preview": { |
| 21 | "type": "boolean", |
| 22 | "default": false |
| 23 | }, |
| 24 | "block_id": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "required": { |
| 28 | "type": "boolean" |
| 29 | }, |
| 30 | "fieldWidth": { |
| 31 | "type": "number", |
| 32 | "default": 100 |
| 33 | }, |
| 34 | "label": { |
| 35 | "type": "string", |
| 36 | "default": "Phone Number" |
| 37 | }, |
| 38 | "placeholder": { |
| 39 | "type": "string" |
| 40 | }, |
| 41 | "help": { |
| 42 | "type": "string", |
| 43 | "default": "" |
| 44 | }, |
| 45 | "isUnique": { |
| 46 | "type": "boolean", |
| 47 | "default": false |
| 48 | }, |
| 49 | "duplicateMsg": { |
| 50 | "type": "string", |
| 51 | "default": "" |
| 52 | }, |
| 53 | "errorMsg": { |
| 54 | "type": "string", |
| 55 | "default": "" |
| 56 | }, |
| 57 | "formId": { |
| 58 | "type": "number", |
| 59 | "default": "" |
| 60 | }, |
| 61 | "autoCountry": { |
| 62 | "type": "boolean", |
| 63 | "default": true |
| 64 | }, |
| 65 | "defaultCountry": { |
| 66 | "type": "string", |
| 67 | "default": "" |
| 68 | }, |
| 69 | "enableCountryFilter": { |
| 70 | "type": "boolean", |
| 71 | "default": false |
| 72 | }, |
| 73 | "countryFilterType": { |
| 74 | "type": "string", |
| 75 | "default": "include" |
| 76 | }, |
| 77 | "includeCountries": { |
| 78 | "type": "array", |
| 79 | "default": [] |
| 80 | }, |
| 81 | "excludeCountries": { |
| 82 | "type": "array", |
| 83 | "default": [] |
| 84 | }, |
| 85 | "isConditionalLogic":{ |
| 86 | "type":"boolean", |
| 87 | "default":false |
| 88 | }, |
| 89 | "slug":{ |
| 90 | "type":"string", |
| 91 | "default":"" |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 |