focus people picker field
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, set Render property of the field in Client in the Forms Designer. Next, you can use the following code to set focus to the field:
Code: Select all
fd.field('FieldName').control()._el().find('.sp-peoplepicker-editorInput').focus()
else if (fd.field('Project_x0020_Manager').value().dictionaryEntries.length == 0) {
alert('Please, fill in the Project Manager field.');
$('#fd_tabcontrol-0').tabs('option', 'active', 0);
fd.field('Project_x0020_Manager').control()._el().find('.sp-peoplepicker-editorInput').focus();
return false;
}
Am i doing something wrong?
alert('Please, fill in the Project Manager field.');
$('#fd_tabcontrol-0').tabs('option', 'active', 0);
fd.field('Project_x0020_Manager').control()._el().find('.sp-peoplepicker-editorInput').focus();
return false;
}
Am i doing something wrong?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
If you use People Picker field in the client-side rendering mode, please, check whether it is empty with the following code:
http://spform.com/forms-designer- ... eld-values
If you use People Picker field in the client-side rendering mode, please, check whether it is empty with the following code:
Code: Select all
fd.field('User').value().length == 0
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests