Valor Input de acordo com o de outros Inputs
Question
Application Type
Mobile


Olá, sou novo por aqui e gostaria de uma ajuda, 

Preciso popular o Input Resultado de acordo com os dados inseridos do input 1 e 2, exemplo.

exemplo1:

Placar time 1 = 2

Placar time 2 = 1

Resultado = Vitoria time 1

exemplo2:

Placar time 1 = 2

Placar time 2 = 2

Resultado = Empate

exemplo3:

Placar time 1 = 0

Placar time 2 = 2

Resultado = Vitoria time 2



Solution

Hello there,

So, first, you need to write in English because it's easier to get help.

Second, it depends on the experience you want to give the user.

You can do one thing that is.

When the user clicked on the input Resultado, you can do the math with a client action and see what is bigger the placar time 1 or placar time2, and with that, you can get who won.


I am going to use an action that will be executed when I click on the input Resultado.

Than I do a switch to see who won or it was a tie


Demo

Kind Regards,

Márcio

ResultOutput.oml

Obrigado pela ajuda e orientação da plataforma.

Consegui resolver. Abraço

Hi Wagner,

this forum is in english to make everyone able to understand and help.

Please repost your query.

Regards

Solution

Hello there,

So, first, you need to write in English because it's easier to get help.

Second, it depends on the experience you want to give the user.

You can do one thing that is.

When the user clicked on the input Resultado, you can do the math with a client action and see what is bigger the placar time 1 or placar time2, and with that, you can get who won.


I am going to use an action that will be executed when I click on the input Resultado.

Than I do a switch to see who won or it was a tie


Demo

Kind Regards,

Márcio

ResultOutput.oml

Obrigado pela ajuda e orientação da plataforma.

Consegui resolver. Abraço

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.