I have a portal which includes 2 buttons show daily recording and add daily recording.I want to hide the button add daily recording if recording exists and if it doesn't hide the other button.
Can anyone help me?
The logic for conditional visibility is the reverse of what seems needed – you craft an expression that evaluates to True when you want the object HIDDEN.
For the button that only displays if the portal record exists, use: IsEmpty ( relatedTable::primaryKey )
For the button that only displays when a portal record does NOT exist, use: not IsEmpty ( relatedTable::primaryKey )
i have set the condition for both the buttons.......... but now i am only show daily Add daily recording is showing up even if the related record fields are filled.
Here is a quick sample file for you.
The relationship Person ---< Note allows creation of related records (via the portal).
There are two buttons set with conditional visibility as I have described.
This is what you will see:
Can you provide the names of the fields? And can you provide the calcs on each button as you have them now? This would help in getting you the better answers.
"if recording exists" means what for example? a field is field or several fields are filled or ???
David is on the right track, I believe, but your exactly named fields may help you understand the answers a little more.
Retrieving data ...