Skip to content

Instantly share code, notes, and snippets.

@leogopal
Last active September 19, 2022 18:57
Show Gist options
  • Save leogopal/b1f05cf334819ff8216c3678de5527c8 to your computer and use it in GitHub Desktop.
Save leogopal/b1f05cf334819ff8216c3678de5527c8 to your computer and use it in GitHub Desktop.
[
{
"Project Type": [
"customize",
"design_and_develop",
"fix",
"install",
"consultation"
],
"Project Subject": [
"plugin",
"theme",
"site",
"ecommerce_site"
],
"Preferred Contractor Number": "&preferredContractor=42701",
"Referral": "ref=k8TwB",
"Budget Agreed upon": "exactBudget=500"
},
{
"Prefix": "prefix=example prefix",
"Title": "title=Example Title",
"Affix": "affix=example affix",
"Description": "desc=This is a Project Description example"
}
]
{
"options": {
"preventAutoAppend": true,
"preventAutoFocus": true,
"submitCallback": "window.onFormlessSubmited"
},
"tags": [
{
"tag": "input",
"type": "text",
"id": "first-tag",
"value": "Prefilled value here",
"cf-questions": "Prefilled1&&with follow-up1&&with follow-up11||Prefilled2&&with follow-up2&&with follow-up22"
},
{
"tag": "select",
"cf-input-placeholder": "Choose one of the above",
"multiple": "multiple",
"cf-questions": "Choose multiple of the elements from the list",
"children": [
{
"tag": "option",
"name": "option-dropdown-1",
"cf-label": "option-1",
"value": "-1"
},
{
"tag": "option",
"name": "option-dropdown-1",
"cf-label": "option-2",
"value": "-2"
}
]
},
{
"tag": "fieldset",
"type": "Radio buttons",
"cf-input-placeholder": "Choose one of the above",
"cf-questions": "Choose one of the radioss",
"children": [
{
"tag": "input",
"type": "radio",
"name": "radio-buttons-1",
"cf-label": "radio-1",
"checked": "checked"
},
{
"tag": "input",
"type": "radio",
"name": "radio-buttons-1",
"cf-label": "radio-2"
}
]
},
{
"tag": "fieldset",
"type": "Checkboxes",
"cf-input-placeholder": "Choose above",
"cf-questions": "Choose some checkboxes",
"children": [
{
"tag": "input",
"type": "checkbox",
"name": "checkboxes-buttons-1",
"cf-label": "checkbox-1",
"checked": "checked"
},
{
"tag": "input",
"type": "checkbox",
"name": "checkboxes-buttons-1",
"cf-label": "checkbox-2"
}
]
},
{
"tag": "input",
"type": "password",
"cf-input-placeholder": "Password field",
"cf-questions": "Write a password"
},
{
"tag": "input",
"type": "text",
"pattern": ".{5,10}",
"cf-input-placeholder": "Input w. pattern attribute",
"cf-error": "No less than 5 and no more than 10 characters",
"cf-questions": "Keep between 5-10 characters"
},
{
"tag": "input",
"type": "text",
"required": "required",
"cf-questions": "This field is required (attribute)",
"cf-error": "Please write something"
},
{
"tag": "input",
"type": "text",
"required": "required",
"cf-questions": "This field uses window.testValidation",
"cf-validation": "window.testValidation",
"cf-error": "Check the window.testValidation method"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment