Variable logic for adding quiz value globally and showing output in Result screen

Hello,



as you could see the picture I have kept 2 question

for question one Radiobutton group has variable Radioval1

for question two Radiobutton group has variable Radioval2

Both variables Radioval1 and Radioval2 are of TEXT type

Each correct option's value is set to "correct"

and Each correct option's value is set to "wrong"

Now I want logic that:

1) If Radiobutton group 1 is correct then store 10 and add inside in a variable temp

If Radiobutton group 2 is correct then store 0 and add inside the same variable temp

2) When I will click on submit button the sum inside temp variable will be store in the database and show the value in the result screen.


mvp_badge
MVP
Solution

Hi Tapas,

See attached application.

Regards,

Daniel


ReactivePlayGround.oap

mvp_badge
MVP

You have conflicting acceptance criteria:

If Radiobutton group 1 is correct then store 10 and add inside in a variable temp

If Radiobutton group 1 is correct then store 0 and add inside the same variable temp

Sorry I made a typo


Champion

Hi

I am sorry. What exactly is the problem?

Can you provide more detailed information?

Kind Regards,

mvp_badge
MVP

I believe it is a pretty detailed description, what detail are you missing?

mvp_badge
MVP

Hi,

See attached OML for the solution.

Btw, I left out the part to store the result in the database.

Just create an entity with UserId as Primary key and an attribute Score and use the CreateOrUpdate<Entityname> action to create or update the record.

Regards,

Daniel

ReactivePlayGround.oml

Hello Daniel,

Thank you very much this is what I wanted.

also could you please tell me how to save this form?

I mean if a candidate has appeared for Java test then after getting his marks he won't able to attend the test again. and on the card of Java test will show as pass/fail if a candidate tries to open java test card he/she will get a text message as "you can't attend this again" along with the marks

Regards,

Tapas Pattnaik

mvp_badge
MVP
Solution

Hi Tapas,

See attached application.

Regards,

Daniel


ReactivePlayGround.oap

Hello Daniel,

Thank you very much. it will help me a lot.????

Regards,

Tapas

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