+ Start a Discussion
Ganesh RajputGanesh Rajput 

How to make field read only in flow?

I have two pick lists which are editable for user. when the flow will launch on click, these two Picklists should display with default picklist value but the user should not be able to edit these two picklists.

I am done with this requirement of default values but how can I make these Picklists read-only?
 Is it Possible?


Thank you 
ShirishaShirisha (Salesforce Developers) 
Hi Ganesh,

Greetings!

You can change the Field level Security to Read Only  on the field for the User profile to which you need to restrict.To enable Read Only on the Field Level,you can follow the steps:

>>Go to the Field and Click on the Set Field-Level Security button which is besides the Edit.
>>Click on Read Only Checkbox besides the User's Profile.

Which makes the field Read Only for the users who are all having the same profile.

Reference:https://help.salesforce.com/articleView?id=admin_fls.htm&type=5

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Ganesh RajputGanesh Rajput
Thanks for your reply @Shirisha.


but, picklist should be editable on record page. On flow screen it should not be editable. So I can not change field level security.
ShirishaShirisha (Salesforce Developers) 
Hey Ganesh,

I don't think it is possible as the field accessible can be set on profile level.However,we can achieve this as below:

>>Do not get the values for the Read Only picklist field by the user on the screen.
>>In the create Record Component assign the default value for the picklist fields.So that,it will create the record with the details which we have provided in the Record create component itself without getting the value from the User.

Hope this information is clear.

Thank you!
Tina Burns 1Tina Burns 1
This is a best platform for opening multiple urls with one url opener click (http://www.urls-opener.com). Just paste your urls in this url opener and just click on Click button in few seconds your all urls will be opened.
GeekyAkshayGeekyAkshay
Late answer but still valid for future visitors: Only possible way out is to create a separate lightning flow with field outputs on-screen elements (without input elements). I cannot even find this anywhere and end up doing it this way. Another way includes creating a custom lightning components with mode type as input and use them on flow screens.