Actually I am making a form over my client site where after filling the form completely user needs to pay a certain amount to submit the form data which is working fine but after payment status returns succeded then it will trigger the $w( ‘#formDataset’ ).save() here the error rises which say "errorDescription: “No File To Upload” I am confused that why it’s not working!.
Please kindly suggest me the solution for this problem.
Show us the code, we can´t answer it without it.
export async function payNow(event) {
let paymentButton = $w('#pay');
await createToken(encodeCard(createCard()))
.then(async (token) => {
console.log(token);
if (token.id !== undefined) {
console.log(payment);
await charge(token.id, payment)
.then(async(chargeResponse) => {
if (chargeResponse.status === "succeeded" || chargeResponse.status === "processing") {
$w('#agentAcademyAdvisorSubmissions').setFieldValues({
'paymentStatuse': chargeResponse.status,
'stripePaymentId': chargeResponse.id
})
await $w('#agentAcademyAdvisorSubmissions').save().then(() => {
$w('#slideshow1').changeSlide(1).then(() => {
$w('#box19').scrollTo()
})
})
} else {
$w('#loader').collapse()
paymentButton.label = "Pay Now";
paymentButton.enable();
$w('#err').text = chargeResponse.error.message;
$w('#err').show();
}
});
} else {
$w('#loader').collapse()
paymentButton.label = "Pay Now";
paymentButton.enable();
$w('#err').text = token.error.message;
$w('#err').show();
}
});
}
Here is the code please kindly check that out
@GiriZano??
The obvious question first: do you have anywhere on your form a file upload button? Second: if you press CTRL-i, you go into dev. console. Could you dump a screenshot from that error message here?