top of page

Selected-Index

CLOSE.png

What do you think, which color do i like?

Your Choice!

Submit
CODE
INFO

CODE

CLOSE.png

$w.onReady(function () {});

 

var selectedValue

 

export function radioGroup1_click(event) {

    $w('#TXToutput').text = $w('#radioGroup1').selectedIndex.toString()

    selectedValue = $w('#radioGroup1').selectedIndex

    console.log(selectedValue)

    if (selectedValue ===0) {$w('#box1').style.backgroundColor="red"}

    if (selectedValue ===1) {$w('#box1').style.backgroundColor="yellow"}

    if (selectedValue ===2) {$w('#box1').style.backgroundColor="blue"}

}

 

export function button1_click(event) {

    if(selectedValue ===0) {$w('#TXToutput1').text = "Sorry red is not my favourite color."}

    if(selectedValue ===1) {$w('#TXToutput1').text = "Yes that's it, this is my favourite color."}

    if(selectedValue ===2) {$w('#TXToutput1').text = "Sorry blue is not my favourite color."}

    setTimeout(()=>{$w('#funnelQuiz01').changeState("state2")},1500)

}


 

export function button2_click(event) {

    selectedValue = $w('#radioGroup2').selectedIndex

    if(selectedValue ===0) {$w('#funnelQuiz01').changeState("state3")}

    if(selectedValue ===1) {$w('#funnelQuiz01').changeState("Endstate"), $w('#TXTfinish').text = "Sorry you are not the right choice for us.."}

}



 

export function radioGroup3_change(event) {

    selectedValue = $w('#radioGroup3').selectedIndex

    $w('#TEXT').hide()

    $w('#q1submit').enable()

    if (selectedValue===2) {$w('#vector1').show()}

    else {$w('#vector1').hide()}

    $w('#TEXT').text = "Now you are able to continue"

}


 

export function q1submit_click(event) {

    if(selectedValue ===0) {$w('#funnelQuiz01').changeState("sorry")}

    if(selectedValue ===1) {$w('#funnelQuiz01').changeState("Endstate")}

    if(selectedValue ===2) {$w('#funnelQuiz01').changeState("congrat")}

    if(selectedValue ===3) {$w('#funnelQuiz01').changeState("Endstate"),    $w('#TXTfinish').text = "Sorry you are not the right choice for us.."}

    if(selectedValue ===4) {$w('#funnelQuiz01').changeState("sorry")}

 

 if (selectedValue !== undefined) {

        $w('#q1submit').enable()

        $w('#TEXT').show()

        $w('#TEXT').text = "Please make a selection to continue"

 }

 else {$w('#q1submit').disable()}

  

}


 

export function BTNexit_click(event) {$w('#funnelQuiz01').changeState("state1")}

export function BTNexit2_click(event) {$w('#funnelQuiz01').changeState("state1")}

export function button4_click(event) {$w('#funnelQuiz01').changeState("state1")}

Comment-Box

CLOSE.png

Version-1.0

Under_Construction.png

Leave a comment. . .

Arrow.png

General-Settings

ON                 OFF

Show Text-Length

ON                 OFF

max. Text-Length

ON                 OFF

Show Key-Press

ON                 OFF

Show Key-Code

ON                 OFF

Show Total-Count

Character-limit

Load default settings
Save
mr-money-man 00:22:20

You can use also the CHAT if you want

 

8.8.2020
mr-money-man 00:22:01

Welcome back on my site ^^

8.8.2020
barbarabessals2 19:21:42

hello!

07/08/2020
mr-money-man 23:52:46

Hello Barbera ^^

7.8.2020
arthurvalatin 07:33:29

hello

04/08/2020
russian-dima 00:15:35

You can also set your own CHARACTER-LIMITATION in the SETTINGS but at moment 240
-characters are the max.

30.7.2020
arthurvalatin 07:13:39

hello!

30/07/2020
russian-dima 00:11:43

PRESS "TAB+ENTER" and you will see how it works without the button xD

30.7.2020
russian-dima 00:10:23

For example it is possible to send messages without to click everytime with the
mouse onto the button xDD

30.7.2020
russian-dima 00:09:45

You will find a lot of hidden intergrated stuff in my little comment/chat-tool ^
^

30.7.2020
arthurvalatin 07:09:33

Hello!

30/07/2020
russian-dima 00:08:44

Check it out! It almost works like a CHAT-BOX

30.7.2020
Page 1 of 1
Design
Settings
About
CLOSE.png
Leave a comment, or start a chat.

Post-Comment

- - -

Pressed-Key

- - -

Key-Code

Text-Length

- - -

max. Text-Length

- - -

Number of Comments

- - -

designed & developed by russian-dima

Write a comment
bottom of page