To achieve this, you can add a click event listener to the "Know your risk" button and call a method that will submit the form and redirect the user to the desired page. Here's an example implementation:
<template>
<form @submit.prevent="submitForm" class="login100-form validate-form">
<!-- form fields here -->
<div class="wrap-login100-form-btn">
<div class="login100-form-bgbtn"></div>
<button type="submit" class="login100-form-btn">Submit</button>
</div>
<div class="container-login100-form-btn m-t-10 m-b-10">
<p class="know_your_risk_label text-secondary">
<button type="button" class="login100-form-btn know-risk-text" @click="knowYourRisk">Know your risk</button>
</p>
</div>
</form>
</template>
<script>
export default {
methods: {
submitForm() {
// handle form submission here
},
knowYourRisk() {
// submit the form
this.$http.post(this.$member_whitelist_signup, form_data).then(response => {
if (response.data.success == true) {
// redirect to the desired page
window.location.href = window.location.origin + "/questionnaire";
} else {
// handle error
}
});
}
}
};
</script>
In this example, we added a click event listener to the "Know your risk" button and called a method called knowYourRisk. Inside this method, we submitted the form using this.$http.post and redirected the user to the desired page using window.location.href. Note that we used type="button" for the "Know your risk" button to prevent it from submitting the form.