Calculator smart field formulas

I want to build a webpage for my pupils to train grammar but have limited knowledge of javascript.

Let’s say I have a “option selection element”.

  1. Can the smart field/ calculator check, which option the user has chosen?
  2. How would the code look like? Can anyone point me into direction, where to learn the kind of javascript, the calculator is using? I know, a tutorial is on its way.

Best regards, Tom

Hello Tom :parrot:

I don’t quite understand what you want to achieve.
Can you make a visual example and post it here as a screenshot?
The calculator smartfield is rather intended for smaller arithmetic operations, but can also do other things.

Mr. F.

I am looking for a way to build quizzes in Sparkle.
Very simple it could be something like this:

Hi.

That’s not too complicated, but maybe not what you are looking for. It took me less than 5 minutes to build this:
Bildschirmfoto 2023-08-29 um 15.00.03

Bildschirmfoto 2023-08-29 um 15.00.27

Bildschirmfoto 2023-08-29 um 15.00.36

The “is” radio is like “am”. “Taschenrechner” is the smart field. Last image shows the setting for “Taschenrechner”. Try it and let us know.

Mr. F.