Hello Wix Code Community .
I Designed this withdrawal page for my website .
i used “Update Profile” Data set to show user earning on this page and “Withdrawal data set” to store user email address , withdraw amount and payment method.
On page load Confirm button will show and withdraw button hide. when user click the confirm button it will check the amount greater then 5 and less then and equal to the earning balance that he have in the account. But it’s not working properly . i don’t know why .
Here is code :
$w.onReady( function () {
});
export function button1_click(event) {
if ( (“#input1”).value > 5.0 && (“#input1”).value <= Number((“#text35”).text) ) {
$w(“#button2”).hide();
$w(“#button1”).show();
$w(“#text33”).text = Successfully Confirmed. Now Withdraw Amount
;
} **else** {
$w("#button2").show();
$w("#button1").hide();
$w(“#text33”).text = Insufficient Balance
;
}
}
Exactly when i entered the amount to withdraw less then or greater then 5.0 and click on confirm button it always show the withdraw button and it show only one line every time Insufficient Balance
which is not exactly as i code this page . i don’t know what is wrong with this code.
i also want to subtract the withdrawal balance from the user earning and update in the database.
Any solution Please…