Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "post_type": "meta-box",
- "post_title": "Form Page Settings",
- "post_date": "2022-11-29 14:22:38",
- "post_status": "publish",
- "post_content": "",
- "settings": {
- "object_type": "post",
- "post_types": [
- "adir_form_page"
- ],
- "context": "normal",
- "priority": "high",
- "style": "default",
- "class": "",
- "prefix": "",
- "text_domain": "your-text-domain",
- "function_name": "your_prefix_function_name"
- },
- "fields": "",
- "data": [],
- "meta_box": {
- "title": "Form Page Settings",
- "id": "form-page-settings",
- "post_types": [
- "adir_form_page"
- ],
- "text_domain": "your-text-domain",
- "function_name": "your_prefix_function_name",
- "fields": [
- {
- "name": "Page Subtitle",
- "id": "page_subtitle",
- "type": "textarea"
- },
- {
- "name": "Page Type",
- "id": "page_type",
- "type": "select",
- "label_description": "Select the page type to use",
- "options": {
- "intro": "Intro",
- "medicalPoa": "Medical POA",
- "secondaryMedicalPoa": "Secondary Medical POA",
- "goalsOfCare": "Goals of Care",
- "values": "Values",
- "messages": "Messages",
- "submit": "Submit"
- },
- "placeholder": "Page Type"
- },
- {
- "name": "Toggles",
- "id": "toggles",
- "type": "group",
- "clone": true,
- "sort_clone": true,
- "clone_default": true,
- "fields": [
- {
- "name": "Heading",
- "id": "heading",
- "type": "text"
- },
- {
- "name": "Content",
- "id": "content",
- "type": "textarea"
- },
- {
- "name": "More Label",
- "id": "more_label",
- "type": "text",
- "std": "Learn More"
- },
- {
- "name": "Less Label",
- "id": "less_label",
- "type": "text",
- "std": "Show Less"
- }
- ],
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "medicalPoa"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Field Intro",
- "id": "field_intro",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "medicalPoa"
- ],
- [
- "page_type",
- "=",
- "secondaryMedicalPoa"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Secondary MPOA Label",
- "id": "secondary_mpoa_label",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "medicalPoa"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Field ID",
- "id": "field_id",
- "type": "text",
- "required": true,
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "goalsOfCare"
- ],
- [
- "page_type",
- "=",
- "values"
- ],
- [
- "page_type",
- "=",
- "messages"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Field Options",
- "id": "field_options",
- "type": "text_list",
- "options": {
- "Value": "Value",
- "Label": "Label"
- },
- "clone": true,
- "sort_clone": true,
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "goalsOfCare"
- ],
- [
- "page_type",
- "=",
- "messages"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Yes Options",
- "id": "yes_options",
- "type": "text",
- "clone": true,
- "sort_clone": true,
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "values"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "No Options",
- "id": "no_options",
- "type": "text",
- "clone": true,
- "sort_clone": true,
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "values"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Maybe Options",
- "id": "maybe_options",
- "type": "text",
- "clone": true,
- "sort_clone": true,
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "values"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Comments Placeholder",
- "id": "comments_placeholder",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "values"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "No Specify Option",
- "id": "no_specify_option",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "values"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Custom Fields",
- "id": "custom_fields",
- "type": "group",
- "clone": true,
- "sort_clone": true,
- "clone_default": true,
- "fields": [
- {
- "name": "Id",
- "id": "id",
- "type": "text"
- },
- {
- "name": "Type",
- "id": "type",
- "type": "select",
- "options": {
- "textarea": "Textarea"
- },
- "std": "textarea"
- },
- {
- "name": "Label",
- "id": "label",
- "type": "text"
- },
- {
- "name": "Placeholder",
- "id": "placeholder",
- "type": "text"
- }
- ],
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "messages"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Submit Label",
- "id": "submit_label",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "submit"
- ]
- ],
- "relation": "or"
- }
- },
- {
- "name": "Confirmation Page",
- "id": "confirmation_page",
- "type": "text",
- "visible": {
- "when": [
- [
- "page_type",
- "=",
- "submit"
- ]
- ],
- "relation": "or"
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement