angular icon indicating copy to clipboard operation
angular copied to clipboard

[Question] How to use logical operators in Form Build while using Js in Logic ?

Open buseodaci opened this issue 5 years ago • 4 comments

Hi, Im using Formio in my project and im calculating BMI succesfully . I also have second component which tell this BMI value is thin or fat etc. In the Logic i create a trigger like this.

image

But after save when i want to use it looks like in the builder.

image

After searching i know that i cannot use '<' or '<=' signs directly. I start replacing '>=' with '&gtt;=' in the renderer and builder components. First it worked but then randomly start giving me '>=' this again.

How can i solve this ?

buseodaci avatar Feb 19 '21 10:02 buseodaci

Yeah this seems like a bug. We will try to reproduce on our end. What version are you using?

formiobot avatar Feb 19 '21 15:02 formiobot

4.8.0

buseodaci avatar Feb 19 '21 16:02 buseodaci

Hello @buseodaci, can you try testing using 5.0.0 and see if the issue still occurs?

wag110894 avatar Feb 19 '21 20:02 wag110894

@wag110894 Still same.

buseodaci avatar Feb 22 '21 05:02 buseodaci