Contents
Set the ‘contentEditable’ property of the people picker field to false.
- To disable all the people picker fields – $(‘[title=”People Picker”]’).attr(“contentEditable”,”false”);
- To disable a specific people picker – $(‘#divID’).attr(“contentEditable”,”false”); , where divID is the ID of the people picker div.
How do you make a field non editable on Infopath?
1 Answer
- Use “Customize Form” again from the Sharepoint Ribbon.
- Right click each Control in question.
- Click Properties.
- Click the Display Tab.
- Ensure that the Read-only checkbox is unticked.
How do I make a field read-only in Infopath?
2 Answers
- Right click on Date field.
- Click Tex Box Propetries.
- Click on Display tab.
- Check Read-only.
- Click OK.
How do I turn off picker in Infopath?
Re: Disabling contact picker/people picker on browser enabled infopath form? You can do this via conditional formatting. Right click on the control, and select ‘Conditional Formatting…’, and click ‘Add…’ – there you will see ‘disable’ or ‘hide this control’ options.
Is there a bug in InfoPath people picker control?
There is a bug in infopath people picker control. Infopath disables the people picker fully only in IE but in chrome and firefox, the textbox of people picker allows us to enter users OR alter old values.
Is there way to disable people picker in IE?
Infopath disables the people picker fully only in IE but in chrome and firefox, the textbox of people picker allows us to enter users OR alter old values. Very strange. For New Item Form: If you dont want to allow users to enter values in people picker then its better to hide it completely.
This script works on SharePoint 2013, 2016 and Online. I heard it works on 2010 as well, though I haven’t had much experience with it there. Let me know! I have a lightweight JavaScript file which allows you to hide or disable (set to read-only) fields in a new or edit form.
Is there a read only field in group picker?
PS: Some controls, such as the Person/Group picker, don’t have a read-only toggle in their control properties. However, setting the View to read-only will work for these controls You can use a Calculated field and set the value equals to your people picker field. Make sure the Calculated field value is updated every time.