I'm developing a contest page.
I have the 5 fields for each judge that assign points 0 to 5
I need to fill a field with the total point values that is the result of the sum of Judge1+Judge2....Judge5
Some sample code for this?
Thanks in advance.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
@J. D. Thanks for all your valuable help! but in the last code the sum of the value is still give me 0 any clue why? best regards!!!!
@J. D. maybe you can help me with this! i wrote this but dosnt work
export function button11_click(event) { let J1 = Number($w("#J1").value); let J2 = Number($w("#J2").value); let J3 = Number($w("#J3").value); let J4 = Number($w("#J4").value); let J5 = Number($w("#J5").value); $w("#PT").text = (J1*J2+J3+J4+J5).toString(); }
Any Clues?
I wrote this but not good, i can get the result
}
export function PT_viewportEnter(event,$w) {
let J1 = Number;$w("#J1").value;
let J2 = Number;$w("#J2").value;
let J3 = Number;$w("#J3").value;
let J4 = Number;$w("#J4").value;
let J5 = Number;$w("#J5").value;
$w("#PT").text = (J1+J2+J3+J4+J5).string();
}