- Joined
- Mar 15, 2022
- Messages
- 9
- Points
- 3
Reputation:
Hello there!
I have been stuck on this issue for some time now.
On the pages application I have a database which displays open vacancies within my community, which looks like the following:
When the database record is 'Closed' (custom field key status2 === 1) I want the apply button to be disabled.
When the database record is 'Hiring' (custom field key status2 === 2) I want the apply button to be enabled.
Within Database templates i'm aware that if & else statements are usable, however I can't work out how to write the if expression. I've tried everything i can think of and can not get it to work. Does anyone know how I would get this to work?
Below is an example of what I have tried.
After hours of research myself, these are the only two articles that i could find.
https://invisioncommunity.com/4guides/themes-and-customizations/template-syntax/ifelseifelse-logic-r138/
https://invisioncommunity.com/forums/topic/408319-if-statement-for-custom-field/
If anyone could work out how to do this, I will love you forever! <3
I have been stuck on this issue for some time now.
On the pages application I have a database which displays open vacancies within my community, which looks like the following:
When the database record is 'Closed' (custom field key status2 === 1) I want the apply button to be disabled.
When the database record is 'Hiring' (custom field key status2 === 2) I want the apply button to be enabled.
Within Database templates i'm aware that if & else statements are usable, however I can't work out how to write the if expression. I've tried everything i can think of and can not get it to work. Does anyone know how I would get this to work?
Below is an example of what I have tried.
After hours of research myself, these are the only two articles that i could find.
https://invisioncommunity.com/4guides/themes-and-customizations/template-syntax/ifelseifelse-logic-r138/
https://invisioncommunity.com/forums/topic/408319-if-statement-for-custom-field/
If anyone could work out how to do this, I will love you forever! <3