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
Kristiana GrangerKristiana Granger 

On USER (object) detail page - I want to display warning message

On user object - I want to display warning message via VF page, but here the problem is there is no option for Inline VF page on User Layout. is there any workaround?
OR
Apart from VF page is there any other options to display warning?
User object there is no option for Inline VF page
Best Answer chosen by Kristiana Granger
vishal-negandhivishal-negandhi

Hi Kristiana, 

You need to add Standard Controller = User on your visualforce page for it to be visible here. Example below

<apex:page standardController="User">
    -- SOME MESSAGe --
</apex:page>


Once you have this, the page should be available for you in the layout.

 

Best,

Vishal

All Answers

vishal-negandhivishal-negandhi

Hi Kristiana, 

You need to add Standard Controller = User on your visualforce page for it to be visible here. Example below

<apex:page standardController="User">
    -- SOME MESSAGe --
</apex:page>


Once you have this, the page should be available for you in the layout.

 

Best,

Vishal

This was selected as the best answer
ANUTEJANUTEJ (Salesforce Developers) 
Hi Kristina,

I don't think this would be possible to my knowledge, as this is something standard if you see you won't be able to edit the fields as well.

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be used by others in the future.

Regatds,
Anutej
Kristiana GrangerKristiana Granger

Thank you Vishal and Anutej for Answer. 

This approach works - 
<apex:page standardController="User">
-- SOME MESSAGe --
</apex:page>