You are here

yamlform.schema.yml in YAML Form 8

config/schema/yamlform.schema.yml

File

config/schema/yamlform.schema.yml
View source
  1. # Schema for the configuration files of the YAML Form module.
  2. yamlform.settings:
  3. type: config_object
  4. label: 'Form settings'
  5. mapping:
  6. settings:
  7. type: mapping
  8. label: 'Form default settings'
  9. mapping:
  10. default_page_base_path:
  11. type: string
  12. label: 'Default base path'
  13. default_form_submit_label:
  14. type: label
  15. label: 'Default form submit text'
  16. default_form_closed_message:
  17. type: text
  18. label: 'Default form closed message'
  19. default_form_exception_message:
  20. type: text
  21. label: 'Default form exception message'
  22. default_form_confidential_message:
  23. type: text
  24. label: 'Default form confidential message'
  25. default_form_novalidate:
  26. type: boolean
  27. label: 'Disable client-side validation'
  28. default_form_unsaved:
  29. type: boolean
  30. label: 'Warn users about unsaved changes'
  31. default_form_disable_back:
  32. type: boolean
  33. label: 'Disable back button'
  34. default_form_details_toggle:
  35. type: boolean
  36. label: 'Display collapse/expand all details link'
  37. default_wizard_prev_button_label:
  38. type: label
  39. label: 'Default wizard previous page button label'
  40. default_wizard_next_button_label:
  41. type: label
  42. label: 'Default wizard next page button label'
  43. default_wizard_start_label:
  44. type: label
  45. label: 'Default wizard start label'
  46. default_wizard_complete_label:
  47. type: label
  48. label: 'Default wizard complete label'
  49. default_preview_next_button_label:
  50. type: label
  51. label: 'Default preview button label'
  52. default_preview_prev_button_label:
  53. type: label
  54. label: 'Default preview previous page button label'
  55. default_preview_message:
  56. type: text
  57. label: 'Default preview message'
  58. default_draft_button_label:
  59. type: label
  60. label: 'Default draft button label'
  61. default_draft_saved_message:
  62. type: text
  63. label: 'Default draft save message'
  64. default_draft_loaded_message:
  65. type: text
  66. label: 'Default draft load message'
  67. default_confirmation_message:
  68. type: text
  69. label: 'Default confirmation message'
  70. default_confirmation_back_label:
  71. type: text
  72. label: 'Default confirmation back label'
  73. default_limit_total_message:
  74. type: text
  75. label: 'Default limit total message'
  76. default_limit_user_message:
  77. type: text
  78. label: 'Default limit user message'
  79. form_classes:
  80. type: string
  81. label: 'Form CSS classes'
  82. button_classes:
  83. type: string
  84. label: 'Button CSS classes'
  85. confirmation_classes:
  86. type: string
  87. label: 'Confirmation CSS classes'
  88. confirmation_back_classes:
  89. type: string
  90. label: 'Confirmation back link CSS classes'
  91. elements:
  92. type: mapping
  93. label: 'Elements default settings'
  94. mapping:
  95. allowed_tags:
  96. type: string
  97. label: 'Allowed tags'
  98. wrapper_classes:
  99. type: string
  100. label: 'Wrapper CSS classes'
  101. classes:
  102. type: string
  103. label: 'Element CSS classes'
  104. default_description_display:
  105. type: string
  106. label: 'Default title display'
  107. default_google_maps_api_key:
  108. type: string
  109. label: 'Default Google Maps API key'
  110. excluded_types:
  111. type: ignore
  112. label: 'Excluded types'
  113. file:
  114. type: mapping
  115. label: 'File upload default settings'
  116. mapping:
  117. file_public:
  118. type: boolean
  119. label: 'Allow files to be uploaded to public file system.'
  120. default_max_filesize:
  121. type: string
  122. label: 'Default maximum upload size'
  123. default_managed_file_extensions:
  124. type: string
  125. label: 'Default allowed managed file extensions'
  126. default_image_file_extensions:
  127. type: string
  128. label: 'Default allowed image file extensions'
  129. default_video_file_extensions:
  130. type: string
  131. label: 'Default allowed video file extensions'
  132. default_audio_file_extensions:
  133. type: string
  134. label: 'Default allowed audio file extensions'
  135. default_document_file_extensions:
  136. type: string
  137. label: 'Default allowed document file extensions'
  138. format:
  139. type: ignore
  140. label: 'Format default settings'
  141. mail:
  142. type: mapping
  143. label: 'Email default settings'
  144. mapping:
  145. default_from_mail:
  146. type: email
  147. label: 'Default email from address'
  148. default_from_name:
  149. type: label
  150. label: 'Default email from name'
  151. default_subject:
  152. type: label
  153. label: 'Default email subject'
  154. default_body_text:
  155. type: text
  156. label: 'Default email body (Plain text)'
  157. default_body_html:
  158. type: text
  159. label: 'Default email body (HTML)'
  160. export:
  161. type: mapping
  162. label: 'Export default settings'
  163. mapping:
  164. exporter:
  165. type: string
  166. label: 'Results exporter'
  167. delimiter:
  168. type: string
  169. label: 'Delimiter text format'
  170. excel:
  171. type: boolean
  172. label: 'Open HTML table in Excel'
  173. file_name:
  174. type: string
  175. label: 'File name'
  176. header_format:
  177. type: string
  178. label: 'Column header format'
  179. header_prefix:
  180. type: boolean
  181. label: 'Column header prefix'
  182. header_prefix_key_delimiter:
  183. type: string
  184. label: 'Column header prefix key delimiter'
  185. header_prefix_label_delimiter:
  186. type: string
  187. label: 'Column header prefix label delimiter'
  188. entity_reference_format:
  189. type: string
  190. label: 'Options format'
  191. options_format:
  192. type: string
  193. label: 'Options item format'
  194. options_item_format:
  195. type: string
  196. label: 'Entity reference format'
  197. likert_answers_format:
  198. type: string
  199. label: 'Likert answers format'
  200. signature_format:
  201. type: string
  202. label: 'Signature format'
  203. composite_element_item_format:
  204. type: string
  205. label: 'Composite element item format'
  206. batch:
  207. type: mapping
  208. label: 'Batch settings'
  209. mapping:
  210. default_batch_export_size:
  211. type: integer
  212. label: 'Batch export size'
  213. default_batch_update_size:
  214. type: integer
  215. label: 'Batch update size'
  216. default_batch_delete_size:
  217. type: integer
  218. label: 'Batch delete size'
  219. test:
  220. type: mapping
  221. label: 'Test settings'
  222. mapping:
  223. types:
  224. type: text
  225. label: 'Test types'
  226. names:
  227. type: text
  228. label: 'Test names'
  229. ui:
  230. type: mapping
  231. label: 'User interface settings'
  232. mapping:
  233. video_display:
  234. type: string
  235. label: 'Video display'
  236. dialog_disabled:
  237. type: boolean
  238. label: 'Disable dialogs'
  239. html_editor_disabled:
  240. type: boolean
  241. label: 'Disable HTML editor'
  242. details_save:
  243. type: boolean
  244. label: 'Save details open/close state'
  245. library:
  246. type: mapping
  247. label: 'Library settings'
  248. mapping:
  249. cdn:
  250. type: boolean
  251. label: 'Use CDN'
  252. third_party_settings:
  253. type: sequence
  254. label: 'Third party settings'
  255. sequence:
  256. type: yamlform.admin_settings.third_party.[%key]
  257. yamlform.yamlform.*:
  258. type: config_entity
  259. label: 'Forms'
  260. mapping:
  261. status:
  262. type: boolean
  263. label: 'Status'
  264. uid:
  265. type: integer
  266. label: 'Author'
  267. template:
  268. type: boolean
  269. label: 'Template'
  270. id:
  271. type: string
  272. label: 'Machine name'
  273. title:
  274. type: label
  275. label: 'Title'
  276. description:
  277. type: label
  278. label: 'Administrative description'
  279. elements:
  280. type: text
  281. label: 'Elements (YAML)'
  282. css:
  283. type: string
  284. label: 'CSS (Cascading Style Sheets)'
  285. javascript:
  286. type: string
  287. label: 'JavaScript'
  288. settings:
  289. type: mapping
  290. label: 'Settings'
  291. mapping:
  292. page:
  293. type: boolean
  294. label: 'Enable page'
  295. page_submit_path:
  296. type: string
  297. label: 'Page submit URL alias'
  298. page_confirm_path:
  299. type: string
  300. label: 'Page confirm URL alias'
  301. form_submit_label:
  302. type: label
  303. label: 'Form submit text'
  304. form_submit_attributes:
  305. type: ignore
  306. label: 'Form submit attributes'
  307. form_closed_message:
  308. type: text
  309. label: 'Form closed message'
  310. form_exception_message:
  311. type: text
  312. label: 'Form exception message'
  313. form_confidential:
  314. type: boolean
  315. label: 'Form confidential'
  316. form_confidential_message:
  317. type: text
  318. label: 'Form confidential message'
  319. form_prepopulate:
  320. type: boolean
  321. label: 'Form prepopulate elements'
  322. form_prepopulate_source_entity:
  323. type: boolean
  324. label: 'Form prepopulate source entity'
  325. form_unsaved:
  326. type: boolean
  327. label: 'Warn users about unsaved changes'
  328. form_disable_back:
  329. type: boolean
  330. label: 'Disable back button'
  331. form_novalidate:
  332. type: boolean
  333. label: 'Disable client-side validation'
  334. form_autofocus:
  335. type: boolean
  336. label: 'Autofocus'
  337. form_details_toggle:
  338. type: boolean
  339. label: 'Display collapse/expand all details link'
  340. wizard_progress_bar:
  341. type: boolean
  342. label: 'Show wizard progress bar'
  343. wizard_progress_pages:
  344. type: boolean
  345. label: 'Show wizard progress pages'
  346. wizard_progress_percentage:
  347. type: boolean
  348. label: 'Show wizard progress pages'
  349. wizard_start_label:
  350. type: label
  351. label: 'Wizard start label'
  352. wizard_start_attributes:
  353. type: ignore
  354. label: 'Wizard start attributes'
  355. wizard_complete:
  356. type: boolean
  357. label: 'Include confirmation page in progress'
  358. wizard_complete_label:
  359. type: label
  360. label: 'Wizard complete label'
  361. wizard_prev_button_label:
  362. type: label
  363. label: 'Wizard previous page button label'
  364. wizard_prev_button_attributes:
  365. type: ignore
  366. label: 'Wizard previous page button attributes'
  367. wizard_next_button_label:
  368. type: label
  369. label: 'Wizard next page button label'
  370. wizard_next_button_attributes:
  371. type: ignore
  372. label: 'Wizard next page button attributes'
  373. preview:
  374. type: integer
  375. label: 'Enable preview page'
  376. preview_next_button_label:
  377. type: label
  378. label: 'Preview button label'
  379. preview_next_button_attributes:
  380. type: ignore
  381. label: 'Preview button attributes'
  382. preview_prev_button_label:
  383. type: label
  384. label: 'Previous page button label'
  385. preview_prev_button_attributes:
  386. type: ignore
  387. label: 'Previous page button attributes'
  388. preview_message:
  389. type: text
  390. label: 'Preview message'
  391. draft:
  392. type: boolean
  393. label: 'Allow your users to save and finish the form later.'
  394. draft_auto_save:
  395. type: boolean
  396. label: 'Automatically save as draft when previewing and when there are validation errors.'
  397. draft_button_label:
  398. type: label
  399. label: 'Draft button label'
  400. draft_button_attributes:
  401. type: ignore
  402. label: 'Draft button attributes'
  403. draft_saved_message:
  404. type: text
  405. label: 'Draft saved message'
  406. draft_loaded_message:
  407. type: text
  408. label: 'Draft loaded message'
  409. confirmation_type:
  410. type: string
  411. label: 'Confirmation type'
  412. confirmation_url:
  413. type: string
  414. label: 'Confirmation URL'
  415. confirmation_message:
  416. type: text
  417. label: 'Confirmation message'
  418. confirmation_attributes:
  419. type: ignore
  420. label: 'Confirmation attributes'
  421. confirmation_back:
  422. type: boolean
  423. label: 'Display back to form link.'
  424. confirmation_back_label:
  425. type: text
  426. label: 'Confirmation back link label'
  427. confirmation_back_attributes:
  428. type: ignore
  429. label: 'Confirmation back link attributes'
  430. limit_total:
  431. type: integer
  432. label: 'Limit total submissions'
  433. limit_total_message:
  434. type: text
  435. label: 'Limit total message'
  436. limit_user:
  437. type: integer
  438. label: 'Limit user submissions'
  439. limit_user_message:
  440. type: text
  441. label: 'Limit user message'
  442. entity_limit_total:
  443. type: integer
  444. label: 'Entity limit total submissions'
  445. entity_limit_user:
  446. type: integer
  447. label: 'Entity limit user submissions'
  448. results_disabled:
  449. type: boolean
  450. label: 'Results disabled'
  451. results_disabled_ignore:
  452. type: boolean
  453. label: 'Ignore disabled results warning'
  454. token_update:
  455. type: boolean
  456. label: 'Allow updates using token'
  457. access:
  458. type: mapping
  459. label: 'Access'
  460. mapping:
  461. create:
  462. type: mapping
  463. label: 'Create form submissions'
  464. mapping:
  465. roles:
  466. type: sequence
  467. label: 'Roles'
  468. sequence:
  469. type: string
  470. label: 'Role'
  471. users:
  472. type: sequence
  473. label: 'Users'
  474. sequence:
  475. type: integer
  476. label: 'User IDs'
  477. view_any:
  478. type: mapping
  479. label: 'View any form submissions'
  480. mapping:
  481. roles:
  482. type: sequence
  483. label: 'Roles'
  484. sequence:
  485. type: string
  486. label: 'Role'
  487. users:
  488. type: sequence
  489. label: 'Users'
  490. sequence:
  491. type: integer
  492. label: 'User IDs'
  493. update_any:
  494. type: mapping
  495. label: 'Update any form submissions'
  496. mapping:
  497. roles:
  498. type: sequence
  499. label: 'Roles'
  500. sequence:
  501. type: string
  502. label: 'Role'
  503. users:
  504. type: sequence
  505. label: 'Users'
  506. sequence:
  507. type: integer
  508. label: 'User IDs'
  509. delete_any:
  510. type: mapping
  511. label: 'Delete any form submissions'
  512. mapping:
  513. roles:
  514. type: sequence
  515. label: 'Roles'
  516. sequence:
  517. type: string
  518. label: 'Role'
  519. users:
  520. type: sequence
  521. label: 'Users'
  522. sequence:
  523. type: integer
  524. label: 'User IDs'
  525. purge_any:
  526. type: mapping
  527. label: 'Purge any form submissions'
  528. mapping:
  529. roles:
  530. type: sequence
  531. label: 'Roles'
  532. sequence:
  533. type: string
  534. label: 'Role'
  535. users:
  536. type: sequence
  537. label: 'Users'
  538. sequence:
  539. type: integer
  540. label: 'User IDs'
  541. view_own:
  542. type: mapping
  543. label: 'View own form submissions'
  544. mapping:
  545. roles:
  546. type: sequence
  547. label: 'Roles'
  548. sequence:
  549. type: string
  550. label: 'Role'
  551. users:
  552. type: sequence
  553. label: 'Users'
  554. sequence:
  555. type: integer
  556. label: 'User IDs'
  557. update_own:
  558. type: mapping
  559. label: 'Update own form submissions'
  560. mapping:
  561. roles:
  562. type: sequence
  563. label: 'Roles'
  564. sequence:
  565. type: string
  566. label: 'Role'
  567. users:
  568. type: sequence
  569. label: 'Users'
  570. sequence:
  571. type: integer
  572. label: 'User IDs'
  573. delete_own:
  574. type: mapping
  575. label: 'Delete own form submissions'
  576. mapping:
  577. roles:
  578. type: sequence
  579. label: 'Roles'
  580. sequence:
  581. type: string
  582. label: 'Role'
  583. users:
  584. type: sequence
  585. label: 'Users'
  586. sequence:
  587. type: integer
  588. label: 'User IDs'
  589. handlers:
  590. type: sequence
  591. label: 'Form handlers'
  592. sequence:
  593. type: mapping
  594. mapping:
  595. id:
  596. type: string
  597. handler_id:
  598. type: string
  599. label:
  600. type: label
  601. status:
  602. type: boolean
  603. weight:
  604. type: integer
  605. settings:
  606. type: yamlform.handler.[%parent.id]
  607. third_party_settings:
  608. type: sequence
  609. label: 'Third party settings'
  610. sequence:
  611. type: yamlform.settings.third_party.[%key]
  612. yamlform.handler.*:
  613. type: mapping
  614. label: 'Handler settings'
  615. yamlform.handler.email:
  616. type: mapping
  617. label: 'Email'
  618. mapping:
  619. to_mail:
  620. label: 'Email to address'
  621. type: email
  622. bcc_mail:
  623. label: 'Email Bcc address'
  624. type: email
  625. cc_mail:
  626. label: 'Email Cc address'
  627. type: email
  628. from_mail:
  629. label: 'Email from address'
  630. type: email
  631. from_name:
  632. label: 'Email from name'
  633. type: label
  634. subject:
  635. label: 'Email subject'
  636. type: label
  637. body:
  638. label: 'Email body'
  639. type: text
  640. excluded_elements:
  641. type: sequence
  642. label: 'Exclude elements'
  643. sequence:
  644. type: string
  645. label: 'Element name'
  646. html:
  647. type: boolean
  648. label: 'HTML'
  649. attachments:
  650. type: boolean
  651. label: 'Attachments'
  652. debug:
  653. type: boolean
  654. label: 'Enable debugging'
  655. yamlform.handler.remote_post:
  656. type: mapping
  657. label: 'Remote Post'
  658. mapping:
  659. type:
  660. label: 'Type'
  661. type: string
  662. insert_url:
  663. label: 'Insert URL'
  664. type: uri
  665. update_url:
  666. label: 'Update URL'
  667. type: uri
  668. delete_url:
  669. label: 'Delete URL'
  670. type: uri
  671. excluded_data:
  672. type: sequence
  673. label: 'Excluded data'
  674. sequence:
  675. type: string
  676. label: 'Data name'
  677. custom_data:
  678. label: 'Custom data'
  679. type: string
  680. insert_custom_data:
  681. label: 'Insert custom data'
  682. type: string
  683. update_custom_data:
  684. label: 'Update custom data'
  685. type: string
  686. delete_custom_data:
  687. label: 'Delete custom data'
  688. type: string
  689. debug:
  690. type: boolean
  691. label: 'Enable debugging'
  692. yamlform.exporter.*:
  693. type: mapping
  694. label: 'Exporter settings'
  695. yamlform.exporter.delimited_text:
  696. type: mapping
  697. label: 'Delimiter'
  698. mapping:
  699. delimiter:
  700. type: string
  701. label: 'Delimiter'
  702. yamlform.yamlform_options.*:
  703. type: config_entity
  704. label: 'Options'
  705. mapping:
  706. id:
  707. type: string
  708. label: 'Machine name'
  709. label:
  710. type: label
  711. label: 'Label'
  712. options:
  713. type: text
  714. label: 'Options (YAML)'
  715. block.settings.yamlform_block:
  716. type: block_settings
  717. label: 'Forms block'
  718. mapping:
  719. yamlform_id:
  720. type: text
  721. label: 'Forms'
  722. default_data:
  723. type: text
  724. label: 'Default form submission data'
  725. # Schema for the configuration of the form field type.
  726. field.storage_settings.yamlform:
  727. type: mapping
  728. label: 'Form field storage settings'
  729. mapping:
  730. target_type:
  731. type: string
  732. label: 'Type of item to reference'
  733. base_yamlform_field_field_settings:
  734. type: mapping
  735. mapping:
  736. handler:
  737. type: string
  738. label: 'Reference method'
  739. handler_settings:
  740. type: entity_reference_selection.[%parent.handler]
  741. label: 'Entity reference selection settings'
  742. field.field_settings.yamlform:
  743. type: base_yamlform_field_field_settings
  744. label: 'Form settings'
  745. mapping:
  746. default_data:
  747. type: string
  748. label: 'Default form submission data'
  749. status:
  750. type: boolean
  751. label: 'Status of the form'
  752. field.widget.settings.yamlform_entity_reference_autocomplete:
  753. type: mapping
  754. label: 'Form autocomplete display format settings'
  755. mapping:
  756. match_operator:
  757. type: string
  758. label: 'Autocomplete matching'
  759. size:
  760. type: integer
  761. label: 'Size of textfield'
  762. placeholder:
  763. type: label
  764. label: 'Placeholder'
  765. field.formatter.settings.yamlform_entity_reference_entity_view:
  766. type: mapping
  767. label: 'Display the referenced form with default submission data.'
  768. field.formatter.settings.yamlform_entity_reference_link:
  769. type: mapping
  770. label: 'Display the referenced form as a link.'
  771. mapping:
  772. label:
  773. type: label
  774. label: 'Link label to the referenced form'