
Akshay Joshi
Estatein Kit – Property Form
Section with bricks form using some js code for design
Copy component
Download JSON

{"id":2590,"name":"property-form","title":"Property form","date":"2025-07-24 20:11:55","date_formatted":"July 24, 2025","author":{"name":"AK_Developer_25","avatar":"https:\/\/secure.gravatar.com\/avatar\/4895fa216fc2f1ee16e6575899e50eb2388264a879a9791a3ad02c7bed840715?s=60&d=mm&r=g","url":"https:\/\/gallopbiz.in\/ak-dev"},"permalink":"https:\/\/gallopbiz.in\/ak-dev\/template\/property-form\/","thumbnail":null,"bundles":[],"tags":[],"type":"section","content":[{"id":"639cd3","name":"section","parent":0,"children":["fa1d58"],"settings":{"_cssGlobalClasses":["qcvyzw"]},"label":"Property form "},{"id":"fa1d58","name":"container","parent":"639cd3","children":["17eb7a","5d73c5"],"settings":{"_cssGlobalClasses":["vcwyzs","wglmeq"],"_direction":"column"}},{"id":"17eb7a","name":"form","parent":"fa1d58","children":[],"settings":{"fields":[{"type":"text","id":"razyza","placeholder":"Search For Property"},{"type":"select","placeholder":"Location","id":"idbvuv","options":"Example 1\nExample 2\nExample 3","width:mobile_landscape":"100","width:tablet_portrait":"50","width":"20"},{"type":"select","placeholder":"Property Type","id":"geqmvt","options":"Example 1\nExample 2\nExample 3","width":"20","width:mobile_landscape":"100","width:tablet_portrait":"50"},{"type":"select","placeholder":"Pricing Range","id":"slqkrp","options":"Example 1\nExample 2\nExample 3","width:mobile_landscape":"100","width:tablet_portrait":"50","width":"20"},{"type":"select","placeholder":"Property Size","id":"tkbahw","options":"Example 1\nExample 2\nExample 3","width":"20","width:mobile_landscape":"100","width:tablet_portrait":"50"},{"type":"select","placeholder":"Build Year","id":"pqqjhr","options":"Example 1\nExample 2\nExample 3","width":"20","width:mobile_landscape":"100","width:tablet_portrait":"50"}],"submitButtonStyle":"primary","actions":["email"],"successMessage":"Message successfully sent. We will get back to you as soon as possible.","emailSubject":"Contact form request","emailTo":"admin_email","fromName":"AK Developer","emailErrorMessage":"Submission failed. Please reload the page and try to submit the form again.","htmlEmail":true,"mailchimpPendingMessage":"Please check your email to confirm your subscription.","mailchimpErrorMessage":"Sorry, but we could not subscribe you.","sendgridErrorMessage":"Sorry, but we could not subscribe you.","_cssGlobalClasses":["rmudwr","bszcpc"],"showLabels":true,"submitButtonText":"Send Your Message","submitButtonMargin":{"left":"-15","top":"16.5"},"_flexDirection":"row","submitButtonWidth":"100"},"themeStyles":[]},{"id":"5d73c5","name":"code","parent":"fa1d58","children":[],"settings":{"javascriptCode":"\/\/ Search input\nconst searchInput = document.querySelector('input[name=\"form-field-razyza\"]');\nif (searchInput) {\n searchInput.parentElement.classList.add('cust_property-input-search-icon');\n}\n\n\/\/ Location select\nconst locationSelect = document.querySelector('select[name=\"form-field-idbvuv\"]');\nif (locationSelect) {\n locationSelect.parentElement.classList.add('cust_property-input-location-icon');\n}\n\n\/\/ Property Type select\nconst propertyTypeSelect = document.querySelector('select[name=\"form-field-geqmvt\"]');\nif (propertyTypeSelect) {\n propertyTypeSelect.parentElement.classList.add('cust_property-input-property-type-icon');\n}\n\n\/\/ Pricing Range select\nconst pricingRangeSelect = document.querySelector('select[name=\"form-field-slqkrp\"]');\nif (pricingRangeSelect) {\n pricingRangeSelect.parentElement.classList.add('cust_property-input-pricing-range-icon');\n}\n\n\/\/ Property Size select\nconst propertySizeSelect = document.querySelector('select[name=\"form-field-tkbahw\"]');\nif (propertySizeSelect) {\n propertySizeSelect.parentElement.classList.add('cust_property-input-property-size-icon');\n}\n\n\/\/ Build Year select\nconst buildYearSelect = document.querySelector('select[name=\"form-field-pqqjhr\"]');\nif (buildYearSelect) {\n buildYearSelect.parentElement.classList.add('cust_property-input-build-year-icon');\n}","executeCode":true,"cssCode":"\/* Search input icon *\/\n.cust_property-input-search-icon input {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-1.svg) no-repeat left center !important;\n background-size: 20px !important;\n \n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/* Location select icon *\/\n.cust_property-input-location-icon select {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-7-1.svg) no-repeat left center !important;\n background-size: 20px !important;\n padding-left: 40px;\n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/* Property Type select icon *\/\n.cust_property-input-property-type-icon select {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-8.svg) no-repeat left center !important;\n background-size: 20px !important;\n padding-left: 40px;\n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/* Pricing Range select icon *\/\n.cust_property-input-pricing-range-icon select {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-9.svg) no-repeat left center !important;\n background-size: 20px !important;\n padding-left: 40px;\n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/* Property Size select icon *\/\n.cust_property-input-property-size-icon select {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-10.svg) no-repeat left center !important;\n background-size: 20px !important;\n padding-left: 40px;\n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/* Build Year select icon *\/\n.cust_property-input-build-year-icon select {\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-11.svg) no-repeat left center !important;\n background-size: 20px !important;\n padding-left: 40px;\n background-repeat: no-repeat !important;\n background-position-x: 10px !important;\n background-color: #000000 !important;\n}\n\n\/************\/\n\/**submit**\/\n.estatein-poperty-search__form .form-group.submit-button-wrapper {\n position: absolute;\n width: max-content !important;\n top: 18px;\n right: calc(11% + 20px);\n}\n.estatein-poperty-search__form .form-group.submit-button-wrapper button.bricks-button {\n line-height: 36px;\n}\n\/* Search input form group background *\/\n\n.form-group.cust_property-input-search-icon input {\n width: 80%;\n border: 10px solid #1a1a1a !important;\n margin-bottom: -10px;\n border-radius: 20px 20px 0 0 !important;\n padding-top: 20px !important;\n padding-bottom: 20px !important;\n}\n\n.form-group.cust_property-input-search-icon {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\/* Location select form group background *\/\n.form-group.cust_property-input-location-icon {\n background: #1a1a1a;\n border-radius: 20px 0 0 20px;\n}\n\n\n\/* Property Type select form group background *\/\n.form-group.cust_property-input-property-type-icon {\n background: #1a1a1a;\n}\n\n\/* Pricing Range select form group background *\/\n.form-group.cust_property-input-pricing-range-icon {\n background: #1a1a1a;\n}\n\n\/* Property Size select form group background *\/\n.form-group.cust_property-input-property-size-icon {\n background: #1a1a1a;\n}\n\n\/* Build Year select form group background *\/\n.form-group.cust_property-input-build-year-icon {\n background: #1a1a1a;\n border-radius: 0 20px 20px 0;\n}\nCopilot said: Ah, I understand! You want the search\nAh, I understand! You want the search icon to be visible on all screen sizes (both mobile and desktop). Here's the corrected CSS:\n\nCSS\n\/* Show both icon and text on all screen sizes for submit button *\/\n.estatein-poperty-search__form .form-group.submit-button-wrapper button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n\n.estatein-poperty-search__form .form-group.submit-button-wrapper button::before {\n content: \"\";\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-12.svg) no-repeat center center;\n background-size: 20px 20px;\n width: 20px;\n height: 20px;\n display: inline-block;\n}\n\n.estatein-poperty-search__form .form-group.submit-button-wrapper button .text {\n display: inline-block;\n}\n@media only screen and (max-width:767px){\n.form-group.cust_property-input-search-icon input {\n width: 100%;\n border: 3px solid #1a1a1a !important;\n margin-bottom: -10px;\n border-radius: 20px!important;\n}\n .estatein-poperty-search__form .form-group.submit-button-wrapper {\n right: calc(0% + 20px);\n top:2px;\n}\n .form-group.cust_property-input-search-icon {\n margin-bottom: 30px;\n padding: 0 !important;\n} \n .form-group.cust_property-input-location-icon {\n \n border-radius: 20px 20px 0 0px;\n}\n .form-group.cust_property-input-build-year-icon {\n \n border-radius: 0 0px 20px 20px;\n }\n \/***btn***\/\n .estatein-poperty-search__form .form-group.submit-button-wrapper button .text {\n display: none;\n }\n \n .estatein-poperty-search__form .form-group.submit-button-wrapper button {\n position: relative;\n }\n \n .estatein-poperty-search__form .form-group.submit-button-wrapper button::before {\n content: \"\";\n background: url(https:\/\/gallopbiz.in\/ak-dev\/wp-content\/uploads\/2025\/07\/Icon-12.svg) no-repeat center center;\n background-size: 20px 20px;\n width: 20px;\n height: 20px;\n display: inline-block;\n vertical-align: middle;\n }\n .estatein-poperty-search__form .form-group.submit-button-wrapper button.bricks-button {\n min-height: 51px;\n min-width: 56px;\n}\n}"},"label":"Js code to add class on input ","themeStyles":[]}],"templateType":"section","global_classes":[{"id":"qcvyzw","name":"estatein-default-section","settings":{"_padding":{"top":"100","bottom":"100","left":"8%","right":"8%"},"_padding:tablet_portrait":{"top":"75","bottom":"75","left":"5%","right":"5%"},"_background":{"color":{"hex":"#141414"}}},"modified":1749740692,"user_id":1},{"id":"wglmeq","name":"estatein-default-container","settings":{"_direction:mobile_landscape":"row","_width":"1596"},"modified":1749711177,"user_id":1},{"id":"vcwyzs","name":"statein-property-banner__other-filters","settings":[],"modified":1753360173,"user_id":1},{"id":"rmudwr","name":"estatein-property__form","settings":{"fieldBackgroundColor":{"hex":"#000000"},"fieldBorder":{"width":{"top":"1","right":"1","bottom":"1","left":"1"},"style":"solid","color":{"hex":"#262626"},"radius":{"top":"8","right":"8","bottom":"8","left":"8"}},"labelTypography":{"color":{"hex":"#ffffff"},"font-size":"clamp(15px, calc(15px + 5 * ((100vw - 1440px) \/ 480)), 20px);","text-transform":"none"},"placeholderTypography":{"color":{"hex":"#666666"},"font-size":"clamp(14px, calc(14px + 4 * ((100vw - 1440px) \/ 480)), 18px);"},"submitButtonBackgroundColor":{"hex":"#703bf7"},"submitButtonTypography":{"color":{"hex":"#ffffff"}},"labelTypography:mobile_landscape":{"font-size":"16"},"placeholderTypography:mobile_landscape":{"font-size":"14"},"fieldPadding":{"top":"5","bottom":"5"},"fieldMargin":{"left":"clamp(15px, calc(15px + 15 * ((100vw - 992px) \/ 928)), 30px);","right":"clamp(15px, calc(15px + 15 * ((100vw - 992px) \/ 928)), 30px);","bottom":"40"},"submitButtonBorder":{"radius":{"right":"6","top":"6","bottom":"6","left":"6"}},"_cssCustom:mobile_landscape":".estatein-property__form button.bricks-button.bricks-background-primary {\n font-size:14px;\n}\n.estatein-property__form .form-group.submit-button-wrapper {\n width: 100%;\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n margin-left: 20px;\n}\n.estatein-property__form button.bricks-button.bricks-background-primary {\n\n margin-right: 0;\n}","fieldMargin:mobile_landscape":{"bottom":"20"},"fieldMargin:mobile_portrait":{"bottom":"15"}},"modified":1752828436,"user_id":1},{"id":"bszcpc","name":"estatein-poperty-search__form","settings":{"fieldMargin":{"left":"10","right":"10","bottom":"10","top":"10"},"fieldPadding":{"top":"10","bottom":"10"},"_position":"relative"}}]}