Custom Form Conditional Logic

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Pomegranate
Posts: 33
Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar

Custom Form Conditional Logic

Post by Pomegranate »

Hello everyone, I recently ran into a problem where I couldn write conditional logic inside custom HTML forms

Code: Select all

<<IF BO.Attribute1 > BO.Attribute2 THEN SHOW_SECTION START>> 
True
<<SECTION_END>>
The above does not work on custom HTML's and I understand that it only works for documents,

I have ran into this javascript conditional logic script when looking at Kendo UI,

Code: Select all

# if(data["Attribute"] !== undefined) { #
Data 
# } else { #
There is no data
# } #
The above code actually works perfectly and you can even use else-if's with it.

So if you needed something like this, please check it out, or if you have more advanced knowledge on this, please share other advanced cases like comparing 2 attributes and so on, I couldn't find any documentation on this, it would also be awesome if you have links to share,

Cheers.
idpSteve
Posts: 201
Joined: Thu Jul 27, 2017 6:13 am
Location: Johannesburg, South Africa
Contact:

Re: Custom Form Conditional Logic

Post by idpSteve »

Pomegranate
Posts: 33
Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar

Re: Custom Form Conditional Logic

Post by Pomegranate »

Thanks :)
Post Reply