Make people picker field read only after saving
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Do you mean that you need to make it read-only in the edit form? If so, just set ReadOnly property in True in Forms Designer.
Do you mean that you need to make it read-only in the edit form? If so, just set ReadOnly property in True in Forms Designer.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Then disable the field with JavaScript if it has a value:
Where 'User' is the internal name of your people picker field.
Code: Select all
fd.field('User').control('ready', function() {
if (fd.field('User').value().length > 0) {
fd.field('User').readonly(true);
}
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests