Hi All,
Please advise if it is possible to use an IF statement in a FORM in the same way as in a query to display different info.
See example:
# } if(data["IncludeTest"]=="No"){ # .....
Thanx
Using an IF Statement in FORM
Re: Using an IF Statement in FORM
Hi,
<<IF BO.IncludeTest = 'Yes' THEN SHOW SECTION_START>>
// Show this
<<SECTION_END>>
<<IF BO.IncludeTest = 'Yes' THEN SHOW SECTION_START>>
// Show this
<<SECTION_END>>
From,
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Re: Using an IF Statement in FORM
…
Or put your fields inside a separator group, with a condition on the visible property
Or put your fields inside a separator group, with a condition on the visible property
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Using an IF Statement in FORM
Hi,
Thank you very much. Appreciate.
regards
Thank you very much. Appreciate.
regards
Re: Using an IF Statement in FORM
As Jaymer Said, Separator group is the way to go. No coding required - elegant and easily maintainable solution. Just keep in mind you need the separator end as well as the separator start lines in otherwise, the condition will be ignored
Rocketman
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5