Hide Data in URL after submission in custom React Form in Framer

I always used this custom form but never noticed it was displaying the data in the url. I’m launching ads and FB has warned me about this. I tried to fix it but I know nothing about React.

Here’s my code:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>// Welcome to Code in Framer
// Get Started: https://www.framer.com/developers/
import Example from "https://framer.com/m/framer/Example.js@^1.0.0"
/**
* These annotations control how your component sizes
* Learn more: https://www.framer.com/developers/#code-components-auto-sizing
*
* @framerSupportedLayoutWidth auto
* @framerSupportedLayoutHeight auto
*/
export default function Consultation_form(props) {
// This is a React component containing an Example component
// - Replace <Example /> with your own code
// - Find inspiration: https://www.framer.com/developers/
return (
<form
action="https://submit-form.com/zhC0BV5uD"
method="post"
style={{
padding: "20px",
width: "100%",
maxWidth: "350px",
display: "flex",
flexDirection: "column",
alignItems: "left",
fontFamily: "Montserrat, sans-serif",
fontSize: "18px",
color: "black",
}}
>
<input
type="hidden"
name="_redirect"
// here you have to paste link, where do you want to lead your users to. *only do it if you use Sparkform. Otherwise, set up the redirection within your email marketing software.
value="https://de-dysport.framer.website/confirmation"
/>
<input
type="text"
id="name"
// here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
name="name"
placeholder="Name"
required
style={{
width: "100%",
padding: "12px",
marginBottom: "15px",
border: "1px solid #000000",
backgroundColor: "transparent",
borderRadius: "4px",
color: "black",
}}
/>
<input
type="email"
id="email"
// here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
name="email"
placeholder="Email"
required
style={{
width: "100%",
padding: "12px",
marginBottom: "15px",
border: "1px solid #000000",
backgroundColor: "transparent",
borderRadius: "4px",
color: "black",
}}
/>
<input
type="phone"
id="phone"
// here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
name="phone"
placeholder="Phone Number"
required
style={{
width: "100%",
padding: "12px",
marginBottom: "15px",
border: "1px solid #000000",
backgroundColor: "transparent",
borderRadius: "4px",
color: "black",
}}
/>
<textarea
id="message"
name="message"
placeholder="Additional request"
style={{
width: "100%",
padding: "12px",
marginBottom: "15px",
border: "1px solid #000000",
backgroundColor: "transparent",
borderRadius: "4px",
color: "black",
}}
></textarea>
<div
style={{
marginBottom: "15px",
}}
>
<input
type="checkbox"
id="1"
name="consent"
value="Checked"
></input>{" "}
<label
htmlFor="consent"
style={{
fontFamily: "Montserrat, sans-serif",
fontSize: "14px",
color: "black",
}}
>
{" "}
I consent to receive promotional communication from Dream
Esthétiques MD
</label>
</div>
<input
type="submit"
value="Submit your request"
style={{
fontSize: "16px",
fontFamily: "Montserrat, sans serif",
width: "100%",
padding: "12px",
backgroundColor: "#A67E81",
color: "white",
fontWeight: "regular",
border: "0px solid",
cursor: "pointer",
}}
/>
</form>
)
}
// Styles are written in object syntax
// Learn more: https://reactjs.org/docs/dom-elements.html#style
const containerStyle = {
height: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
overflow: "hidden",
}
</code>
<code>// Welcome to Code in Framer // Get Started: https://www.framer.com/developers/ import Example from "https://framer.com/m/framer/Example.js@^1.0.0" /** * These annotations control how your component sizes * Learn more: https://www.framer.com/developers/#code-components-auto-sizing * * @framerSupportedLayoutWidth auto * @framerSupportedLayoutHeight auto */ export default function Consultation_form(props) { // This is a React component containing an Example component // - Replace <Example /> with your own code // - Find inspiration: https://www.framer.com/developers/ return ( <form action="https://submit-form.com/zhC0BV5uD" method="post" style={{ padding: "20px", width: "100%", maxWidth: "350px", display: "flex", flexDirection: "column", alignItems: "left", fontFamily: "Montserrat, sans-serif", fontSize: "18px", color: "black", }} > <input type="hidden" name="_redirect" // here you have to paste link, where do you want to lead your users to. *only do it if you use Sparkform. Otherwise, set up the redirection within your email marketing software. value="https://de-dysport.framer.website/confirmation" /> <input type="text" id="name" // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field. name="name" placeholder="Name" required style={{ width: "100%", padding: "12px", marginBottom: "15px", border: "1px solid #000000", backgroundColor: "transparent", borderRadius: "4px", color: "black", }} /> <input type="email" id="email" // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field. name="email" placeholder="Email" required style={{ width: "100%", padding: "12px", marginBottom: "15px", border: "1px solid #000000", backgroundColor: "transparent", borderRadius: "4px", color: "black", }} /> <input type="phone" id="phone" // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field. name="phone" placeholder="Phone Number" required style={{ width: "100%", padding: "12px", marginBottom: "15px", border: "1px solid #000000", backgroundColor: "transparent", borderRadius: "4px", color: "black", }} /> <textarea id="message" name="message" placeholder="Additional request" style={{ width: "100%", padding: "12px", marginBottom: "15px", border: "1px solid #000000", backgroundColor: "transparent", borderRadius: "4px", color: "black", }} ></textarea> <div style={{ marginBottom: "15px", }} > <input type="checkbox" id="1" name="consent" value="Checked" ></input>{" "} <label htmlFor="consent" style={{ fontFamily: "Montserrat, sans-serif", fontSize: "14px", color: "black", }} > {" "} I consent to receive promotional communication from Dream Esthétiques MD </label> </div> <input type="submit" value="Submit your request" style={{ fontSize: "16px", fontFamily: "Montserrat, sans serif", width: "100%", padding: "12px", backgroundColor: "#A67E81", color: "white", fontWeight: "regular", border: "0px solid", cursor: "pointer", }} /> </form> ) } // Styles are written in object syntax // Learn more: https://reactjs.org/docs/dom-elements.html#style const containerStyle = { height: "100%", display: "flex", justifyContent: "center", alignItems: "center", overflow: "hidden", } </code>
// Welcome to Code in Framer
// Get Started: https://www.framer.com/developers/

import Example from "https://framer.com/m/framer/Example.js@^1.0.0"

/**
 * These annotations control how your component sizes
 * Learn more: https://www.framer.com/developers/#code-components-auto-sizing
 *
 * @framerSupportedLayoutWidth auto
 * @framerSupportedLayoutHeight auto
 */
export default function Consultation_form(props) {
    // This is a React component containing an Example component
    // - Replace <Example /> with your own code
    // - Find inspiration: https://www.framer.com/developers/

    return (
        <form

            action="https://submit-form.com/zhC0BV5uD"
            method="post"
            style={{
                padding: "20px",
                width: "100%",
                maxWidth: "350px",
                display: "flex",
                flexDirection: "column",
                alignItems: "left",
                fontFamily: "Montserrat, sans-serif",
                fontSize: "18px",
                color: "black",
            }}
        >
            <input
                type="hidden"
                name="_redirect"
                // here you have to paste link, where do you want to lead your users to. *only do it if you use Sparkform. Otherwise, set up the redirection within your email marketing software.
                value="https://de-dysport.framer.website/confirmation"
            />

            <input
                type="text"
                id="name"
                // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
                name="name"
                placeholder="Name"
                required
                style={{
                    width: "100%",
                    padding: "12px",
                    marginBottom: "15px",
                    border: "1px solid #000000",
                    backgroundColor: "transparent",
                    borderRadius: "4px",
                    color: "black",
                }}
            />

            <input
                type="email"
                id="email"
                // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
                name="email"
                placeholder="Email"
                required
                style={{
                    width: "100%",
                    padding: "12px",
                    marginBottom: "15px",
                    border: "1px solid #000000",
                    backgroundColor: "transparent",
                    borderRadius: "4px",
                    color: "black",
                }}
            />

            <input
                type="phone"
                id="phone"
                // here you have to make sure the name you use matches the one your software uses. "email_address" is a common name they use for the email field.
                name="phone"
                placeholder="Phone Number"
                required
                style={{
                    width: "100%",
                    padding: "12px",
                    marginBottom: "15px",
                    border: "1px solid #000000",
                    backgroundColor: "transparent",
                    borderRadius: "4px",
                    color: "black",
                }}
            />

            <textarea
                id="message"
                name="message"
                placeholder="Additional request"
                style={{
                    width: "100%",
                    padding: "12px",
                    marginBottom: "15px",
                    border: "1px solid #000000",
                    backgroundColor: "transparent",
                    borderRadius: "4px",
                    color: "black",
                }}
            ></textarea>

            <div
                style={{
                    marginBottom: "15px",
                }}
            >
                <input
                    type="checkbox"
                    id="1"
                    name="consent"
                    value="Checked"
                ></input>{" "}
                <label
                    htmlFor="consent"
                    style={{
                        fontFamily: "Montserrat, sans-serif",
                        fontSize: "14px",
                        color: "black",
                    }}
                >
                    {" "}
                    I consent to receive promotional communication from Dream
                    Esthétiques MD
                </label>
            </div>

            <input
                type="submit"
                value="Submit your request"
                style={{
                    fontSize: "16px",
                    fontFamily: "Montserrat, sans serif",
                    width: "100%",
                    padding: "12px",
                    backgroundColor: "#A67E81",
                    color: "white",
                    fontWeight: "regular",
                    border: "0px solid",
                    cursor: "pointer",
                }}
            />
        </form>
    )
}

// Styles are written in object syntax
// Learn more: https://reactjs.org/docs/dom-elements.html#style
const containerStyle = {
    height: "100%",
    display: "flex",
    justifyContent: "center",
    alignItems: "center",
    overflow: "hidden",
}

I looked for an answer but wasn’t able to find a solution with handlesubmit.

I need to fix this asap, it is my first time trying stackoverflow.

Thank you in advance!

New contributor

Imed Djabi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật