Problem with If condition

Problem with If condition

  

I'm having some problems, using an If node when I try to validate a form:

At this point I have the Usuario.form not valid

But instead of go to the false branch, the activity goes to the true branch and creates the Usuario in the DB.


Does someone knows what is going on?

I think your condition is always true. 

Try to change your if condition to: Usuario.Valid = true

I've already tried it, but didn't work. UsarioForm.Valid is a boolean variable, and when it is invalid, this variable is false, so the condition should be false either.

Hi Diego,

That's weird... Your If is correct - UsarioForm.Valid - and if false as in your debug image it must follow that path... Do you have that module available to share?

Hi Diego.

If your If clause is UsarioForm.Valid then that's weird.

On other hand, the If clause could be different than the visible one.

Can you please confirm your condition? See if you don't have something like UsarioForm.Valid or True inside of it (double check if there isn't any other condition in another line).

Share it with us, so we can better help you.

Cheers.



Hi DiegoBrian,

is the espace version on your images the one published on the server?

Hello everyone,


Thank you for the help, but I couldn't figure out what is happening. Unfortunately I can't share the module, because it has confidential content. I solved my problem by creating a local variable in my screen, that saves the information about the validation of the form. It's really ugly, but worked.

João Heleno wrote:

Hi DiegoBrian,

is the espace version on your images the one published on the server?

Yes, it is.