{
    "JourneyAttendees": {
        "attendeeForm": {
            "schema": {
                "type": "object",
                "title": null,
                "properties": {
                    "first_name": {
                        "type": ["null", "string"],
                        "title": "First name",
                        "maxLength": 255
                    },
                    "last_name": {
                        "type": ["null", "string"],
                        "title": "Last name",
                        "maxLength": 255
                    },
                    "email": {
                        "type": ["null", "string"],
                        "validationMessage": "Please enter a valid email",
                        "title": "Email"
                    },
                    "mobile": {
                        "type": ["null", "string"],
                        "title": "Mobile"
                    },
                    "phone": {
                        "type": ["null", "string"],
                        "title": "Phone"
                    },
                    "send_email": {
                        "type": ["null", "string"],
                        "default": "false",
                        "validationMessage": "Please enter a valid email",
                        "title": "Send email"
                    },
                    "phone_prefix": {
                        "type": ["null", "string"],
                        "title": "Phone prefix"
                    },
                    "phone_prefix_country_code": {
                        "type": ["null", "string"],
                        "title": "Phone prefix country code"
                    },
                    "mobile_prefix": {
                        "type": ["null", "string"],
                        "title": "Mobile prefix"
                    },
                    "mobile_prefix_country_code": {
                        "type": ["null", "string"],
                        "title": "Mobile prefix country code"
                    },
                    "consent": {
                        "type": ["null", "boolean"],
                        "title": "Consent",
                        "description": "I have read and accept the <a href='https://www.bookingbug.com/privacy.html'>privacy policy</a>",
                        "validationMessage": "You must agree to the Privacy Policy",
                        "default": false
                    },
                    "relationship": {
                        "type": ["null", "string"],
                        "title": "Relationship to customer",
                        "enum": [null, "Associate", "Co-worker"]
                    },
                    "required": ["consent"]
                }
            },
            "form": [
                {
                    "type": "section",
                    "htmlClass": "row",
                    "items": [
                        {
                            "type": "section",
                            "htmlClass": "col-xs-12",
                            "items": [
                                {
                                    "type": "fieldset",
                                    "items": [
                                        {
                                            "key": "first_name",
                                            "title": "First Name",
                                            "type": "text",
                                            "feedback": false,
                                            "required": true
                                        },
                                        {
                                            "key": "last_name",
                                            "title": "Last Name",
                                            "type": "text",
                                            "feedback": false
                                        },
                                        {
                                            "key": "email",
                                            "title": "Email",
                                            "type": "email",
                                            "feedback": false
                                        },
                                        {
                                            "key": "mobile",
                                            "title": "Mobile Phone",
                                            "type": "phonenumber",
                                            "feedback": false,
                                            "options": {
                                                "separateDialCode": true
                                            },
                                            "validationMessage": {
                                                "default": "Mobile number is invalid"
                                            }
                                        },
                                        {
                                            "key": "relationship",
                                            "title": "Relationship to customer",
                                            "type": "select",
                                            "feedback": false,
                                            "titleMap": [
                                                {
                                                    "name": "",
                                                    "value": null
                                                },
                                                {
                                                    "name": "Associate",
                                                    "value": "Associate"
                                                },
                                                {
                                                    "name": "Co-worker",
                                                    "value": "Co-worker"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}
