Publishing and testing a form | CoreCMS guides

The form shortcode connects a saved form to a page. Its status controls whether the form is active and whether it appears in an A–Z listing.

How to use it

  1. Copy the exact shortcode shown for the form, such as
    {"components":[{"label":"Full name","labelPosition":"top","placeholder":"","widget":{"type":"input"},"hideLabel":false,"showWordCount":false,"showCharCount":false,"spellcheck":true,"tableView":true,"validateOn":"change","validate":{"required":false,"customMessage":"","minLength":"","maxLength":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false,"pattern":""},"unique":false,"errorLabel":"","key":"Full_Name","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"textfield","input":true,"prefix":"","customClass":"","suffix":"","multiple":false,"defaultValue":null,"protected":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"attributes":{},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"properties":{},"allowMultipleMasks":false,"addons":[],"mask":false,"inputType":"text","inputFormat":"plain","inputMask":"","displayMask":"","truncateMultipleSpaces":false,"id":"eqi20gf"},{"label":"Telephone","labelPosition":"top","placeholder":"","widget":{"type":"input"},"hideLabel":false,"showWordCount":false,"showCharCount":false,"spellcheck":true,"tableView":true,"validateOn":"change","validate":{"required":false,"customMessage":"","minLength":"","maxLength":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false,"pattern":""},"unique":false,"errorLabel":"","key":"Telephone","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"textfield","input":true,"prefix":"","customClass":"","suffix":"","multiple":false,"defaultValue":null,"protected":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"attributes":{},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"properties":{},"allowMultipleMasks":false,"addons":[],"mask":false,"inputType":"text","inputFormat":"plain","inputMask":"","displayMask":"","truncateMultipleSpaces":false,"id":"ebpza2r"},{"label":"Email","labelPosition":"top","placeholder":"","widget":{"type":"input"},"hideLabel":false,"spellcheck":true,"validateOn":"change","validate":{"required":false,"customMessage":"","minLength":"","maxLength":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false,"pattern":""},"unique":false,"kickbox":{"enabled":false},"errorLabel":"","key":"email","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"email","input":true,"prefix":"","customClass":"","suffix":"","multiple":false,"defaultValue":null,"protected":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","tableView":true,"modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"attributes":{},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"properties":{},"allowMultipleMasks":false,"addons":[],"mask":false,"inputType":"email","inputFormat":"plain","inputMask":"","displayMask":"","truncateMultipleSpaces":false,"id":"e06xuf"},{"label":"NHS Number","labelPosition":"top","placeholder":"","widget":{"type":"input"},"hideLabel":false,"showWordCount":false,"showCharCount":false,"spellcheck":true,"tableView":true,"validateOn":"change","validate":{"required":false,"customMessage":"","minLength":"","maxLength":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false,"pattern":""},"unique":false,"errorLabel":"","key":"nhsNumber","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"textfield","input":true,"prefix":"","customClass":"","suffix":"","multiple":false,"defaultValue":null,"protected":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"attributes":{},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"properties":{},"allowMultipleMasks":false,"addons":[],"mask":false,"inputType":"text","inputFormat":"plain","inputMask":"","displayMask":"","truncateMultipleSpaces":false,"id":"edx8shi"},{"label":"Healthcare insurance?","labelPosition":"top","optionsLabelPosition":"right","inline":false,"hideLabel":false,"values":[{"label":"Yes","value":"No","shortcut":""},{"label":"No","value":"No","shortcut":""}],"validate":{"required":false,"onlyAvailableItems":false,"customMessage":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"errorLabel":"","minSelectedCountMessage":"","maxSelectedCountMessage":"","key":"healthcareInsurance","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"selectboxes","input":true,"placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","tableView":false,"modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"widget":null,"attributes":{},"validateOn":"change","overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"properties":{},"allowMultipleMasks":false,"addons":[],"inputType":"checkbox","fieldSet":false,"id":"e5xez31a","defaultValue":{}},{"label":"Your message","labelPosition":"top","placeholder":"","widget":{"type":"input"},"hideLabel":false,"showWordCount":false,"showCharCount":false,"spellcheck":true,"tableView":true,"multiple":false,"persistent":true,"inputFormat":"html","protected":false,"dbIndex":false,"case":"","truncateMultipleSpaces":false,"encrypted":false,"redrawOn":"","clearOnHide":true,"customDefaultValue":"","calculateValue":"","calculateServer":false,"allowCalculateOverride":false,"validateOn":"change","validate":{"required":false,"customMessage":"","minLength":"","maxLength":"","minWords":"","maxWords":"","custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false,"pattern":""},"unique":false,"errorLabel":"","key":"yourMessage","conditional":{"show":null,"when":null,"eq":"","json":""},"customConditional":"","type":"textarea","rows":3,"wysiwyg":false,"input":true,"prefix":"","customClass":"","suffix":"","hidden":false,"refreshOn":"","modalEdit":false,"dataGridLabel":false,"description":"","tooltip":"","tabindex":"","disabled":false,"autofocus":false,"attributes":{},"overlay":{"style":"","left":"","top":"","width":"","height":""},"properties":{},"allowMultipleMasks":false,"addons":[],"mask":false,"inputType":"text","inputMask":"","displayMask":"","editor":"","fixedSize":true,"id":"ey21l6g","autoExpand":false,"defaultValue":""},{"type":"button","key":"submitButton","label":"Submit","input":true,"placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"defaultValue":null,"protected":false,"unique":false,"persistent":false,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","tableView":false,"modalEdit":false,"dataGridLabel":true,"labelPosition":"top","description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"widget":{"type":"input"},"attributes":{},"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"conditional":{"show":null,"when":null,"eq":""},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"properties":{},"allowMultipleMasks":false,"addons":[],"size":"md","leftIcon":"","rightIcon":"","block":false,"action":"submit","disableOnInvalid":false,"theme":"primary","id":"e3bdu4g"}]}
    .
  2. Place it in the page’s supported content area.
  3. Choose Live, published in A–Z or Live, excluded from A–Z as appropriate.
  4. Save the page and open it while signed out.
  5. Complete valid and invalid test submissions.
  6. Check the success message, recipient email, uploads and stored entry where enabled.

Before you finish

Live, excluded from A–Z still allows the form to work through its shortcode. Offline is the inactive state. Test again after changing conditional rules or email templates.

Related guides

Form setup, status and shortcode.

Form setup, status and shortcode. Select the image to view it at full size.