You need to sign in to do that
Don't have an account?
Ganesh 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
I am done with this requirement of default values but how can I make these Picklists read-only?
Is it Possible?
Thank you
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
but, picklist should be editable on record page. On flow screen it should not be editable. So I can not change field level security.
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!
I have recently come accross similar requirement, where I need the picklist to be non editable on flow screen. Below are the steps I followed.
1. On the flow screen, add the picklist element.
2. Enter a Label and API Name for the same.
3. Add the picklist value directy as a choice by creating a choice resource type. If the picklist default value is to be fetched from a record dynamically, create a Formula resource and use the same in the Choice resource type. There should be only one choice added.
4. Mark the picklist field as required.
5. Now try running the flow.
6. The picklist should be auto populated with the default value set and there should be no other picklist options, except "-none-"
7. Now, even if you try to select "-none-" and proceed with next screen/step, the flow will through error as the picklist field is marked required and you need to select a value.
This is just a workaround and may or may not work everyone. But, just posting it as it may help someone or give a different perspective logic vise.