function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anchezkaanchezka 

Formula in a Tab

Hi!

 

Could please someone tell me how do I modify url in a tab with IF statment?

For instance, if formula = /apex/MyPage then it does work, but when i set it to IF(1=1,/apex/MyPage,/apex/MyPage) -- it doesn't. How would you modify the las statement to make it work?

 

I do NOT want to open VF page instead of url because:

In our tab we are opening an external url. Sometimes this url doesn't work (if a custom setting hasn' been created). So I'm trying to check if a custom setting exists first, and if it doesn't then I want to open a VF page saying 'go create custom settings record'.

 

Thanks in advance

Best Answer chosen by Admin (Salesforce Developers) 
HariDineshHariDinesh

Hi,

 

Open any one page and through "action" of apex:page component run your required logic and redired based on that.

 

see

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_page.htm

All Answers

HariDineshHariDinesh

Hi,

 

Open any one page and through "action" of apex:page component run your required logic and redired based on that.

 

see

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_page.htm

This was selected as the best answer
anchezkaanchezka

Thanks you very much, your advice has helped me a lot! I've solved a couple more issues with this approach :)

 

Cheers