Skip to main content

Product Review Modal

Submitted by v-shubham.purwar on
Component machine name
CO-1134-ProductReviewModal
Form
Component type
Form with shell
Shell sections
{
    "sections": [
        {
            "sectionKey": "section_rating_modal_content",
            "sectionTitle": "Rating Modal Content",
            "fields": [
                {
                    "fieldKey": "field_form_heading",
                    "fieldLabel": "PLEASE PROVIDE A RATING",
                    "type": "field"
                },
                {
                    "fieldKey": "field_form_message",
                    "fieldLabel": "Please provide a rating for #. Tell us how you like it?",
                    "type": "field"
                }
            ],
            "sections": [
                {
                    "sectionKey": "section_product_details",
                    "sectionTitle": "Product Details",
                    "fields": [
                        {
                            "fieldKey": "field_bike_model",
                            "fieldLabel": "Bike Model",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_order_placed",
                            "fieldLabel": "Order Placed",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_color",
                            "fieldLabel": "Color",
                            "type": "field"
                        },
                        {
                            "fieldKey": "field_total",
                            "fieldLabel": "Total",
                            "type": "field"
                        }
                    ],
                    "sections": []
                }
            ]
        },
        {
            "sectionKey": "section_rating_submitted_content",
            "sectionTitle": "Rating 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 PRODUCT",
                    "type": "field"
                },
                {
                    "fieldKey": "field_close_button",
                    "fieldLabel": "CLOSE",
                    "type": "field"
                },
                {
                    "fieldKey": "field_fetch_error",
                    "fieldLabel": "Failed to fetch product review. Please try again later.",
                    "type": "field"
                },
                {
                    "fieldKey": "field_submit_error",
                    "fieldLabel": "Failed to submit product rating. Please try again.",
                    "type": "field"
                }
            ],
            "sections": []
        }
    ]
}