Skip to main content

Service Feedback Modal

Submitted by v-shubham.purwar on
Component machine name
CO-1144-ServiceFeedbackModal
Form
Component type
Form with shell
Shell sections
{
    "sections": [
        {
            "sectionKey": "section_feedback_modal_content",
            "sectionTitle": "Feedback Modal Content",
            "fields": [
                {
                    "fieldKey": "field_form_heading",
                    "fieldLabel": "PLEASE PROVIDE A RATING",
                    "type": "field"
                },
                {
                    "fieldKey": "field_form_message",
                    "fieldLabel": "Please provide a rating for this service. Tell us how you like it?",
                    "type": "field"
                }
            ],
            "sections": [
                {
                    "sectionKey": "section_service_details",
                    "sectionTitle": "Service Details",
                    "fields": [
                        {
                            "fieldKey": "field_service_dealer",
                            "fieldLabel": "Service Dealer",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_model",
                            "fieldLabel": "Model",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_service_date",
                            "fieldLabel": "Service Date",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_service_type",
                            "fieldLabel": "Service Type",
                            "type": "field"
                        }
                    ],
                    "sections": []
                },
                {
                    "sectionKey": "section_service_booking_details",
                    "sectionTitle": "Service Booking Details",
                    "fields": [
                        {
                            "fieldKey": "field_dealership",
                            "fieldLabel": "Dealership",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_registration_no",
                            "fieldLabel": "Registration No.",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_date",
                            "fieldLabel": "Date",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_status",
                            "fieldLabel": "Status",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_status_pending",
                            "fieldLabel": "Awaiting Confirmation from Dealer",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_status_approved",
                            "fieldLabel": "Confirmed by Dealer",
                            "type": "field"
                        }
                    ],
                    "sections": []
                }
            ]
        },
        {
            "sectionKey": "section_feedback_submitted_content",
            "sectionTitle": "Feedback Submitted Content",
            "fields": [
                {
                    "fieldKey": "field_thank_you_message",
                    "fieldLabel": "THANK YOU FOR PROVIDING A RATING",
                    "type": "field"
                },
                {
                    "fieldKey": "field_already_rated_message",
                    "fieldLabel": "YOU HAVE ALREADY RATED THIS SERVICE",
                    "type": "field"
                },
                {
                    "fieldKey": "field_close_button",
                    "fieldLabel": "CLOSE",
                    "type": "field"
                },
                {
                    "fieldKey": "field_fetch_error",
                    "fieldLabel": "Failed to fetch service feedback. Please try again later.",
                    "type": "field"
                },
                {
                    "fieldKey": "field_submit_error",
                    "fieldLabel": "Failed to submit service rating. Please try again.",
                    "type": "field"
                }
            ],
            "sections": []
        }
    ]
}