Hello,
I am currently working with a record which is being used in 2 different websites on the same environment. These 2 websites have a different look and feel, and some record informations should only be displayed on one of the website, but not on the other one.
Is there a way to keep using the same record on these 2 websites, but have the summary interface dynamically change depending on the website it is accessed from ? For instance, if we access the record from website A, some cards are hidden, whereas if we access the same record from website B, the same cards are showing.
So far I haven't been able to find a way to "detect" the active website from my interface, and I am not sure this is possible.
Thanks
Discussion posts and replies are publicly visible
clmentl0001 said:Hello, I am currently working with a record which is being used in 2 different websites on the same environment. These 2 websites have a different look and feel, and some record informations should only be displayed on one of the website, but not on the other one. Is there a way to keep using the same record on these 2 websites, but have the summary interface dynamically change depending on the website it is accessed from ? For instance, if we access the record from website A, some cards are hidden, whereas if we access the same record from website B, the same cards are showing. So far I haven't been able to find a way to "detect" the active website from my interface, and I am not sure this is possible. Thanks
Yes, you can handle this by passing a parameter or flag that identifies which website the user is accessing the record from. Based on that value, you can use conditional expressions (like if() or showWhen) in the interface to hide or display specific cards.
if()
showWhen
This way you can keep using the same record and summary interface while dynamically adjusting what appears on each website. It keeps the logic centralized and avoids maintaining multiple versions of the same interface.