Firefox doesn't show people picker field
Hello,
i created a form with two People Picker fields. These are both displayed in every Browser except in Firefox.
Like you can see in the picture the second People Picker field is not displayed. Does anyone have a clue what could cause this behaviour?
If I need to support additional information please let me know.
Thanks in advance!
Josh
i created a form with two People Picker fields. These are both displayed in every Browser except in Firefox.
Like you can see in the picture the second People Picker field is not displayed. Does anyone have a clue what could cause this behaviour?
If I need to support additional information please let me know.
Thanks in advance!
Josh
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
I have just tested your case but everything works fine: What's your Form Designer version (you can find it in the lower right corner of the designer window)? Do you use SharePoint Online or on-premises? Could expand the browser console (F12) and provide a list of errors from there?
I have just tested your case but everything works fine: What's your Form Designer version (you can find it in the lower right corner of the designer window)? Do you use SharePoint Online or on-premises? Could expand the browser console (F12) and provide a list of errors from there?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Could you also provide detailed information from the first warning (unreachable code after return statement)?
Try to comment out all custom code, remove all fields and controls except two user fields and check if they are rendered properly.
Try to comment out all custom code, remove all fields and controls except two user fields and check if they are rendered properly.
I got it working! First I commented out all custom code as you said and it displayed both fields correctly. After a little bit of trial and error I found out that the problem was caused by this line of code: "fd.field('Antragssteller').readonly(true);". I really don't get it because it just sets the first people picker field read only. I use this multiple times in the code but just the one in the beginning of the code throws an error on Firefox.
Edit: I looked in the console again and now the ReferenceError doesn't occur anymore.
Thanks for your help!
Edit: I looked in the console again and now the ReferenceError doesn't occur anymore.
Thanks for your help!
- GustavoDinizRodrigues
- Posts: 2
- Joined: Thu Oct 26, 2017
I´ve got the same error using multiple people pickers, but if I use an setTimeoutFunction It does work and the error does not show. In my case I need one of the people picker to be set as read only as soon as the page is loaded. Can someone help me?
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello, Gustavo!
Try this code:
Try this code:
Code: Select all
fd.field('Person').control('ready', function() {
fd.field('Person').readonly(true);
});
Cheers
- GustavoDinizRodrigues
- Posts: 2
- Joined: Thu Oct 26, 2017
Hello, Nikita!
I´ve tried the code above and in the form i was qustioning about it worked perfectly, but i have another form that has a similar issue, i´m sending how it appears on the screen and the error i get, could you help me?
I´ve tried the code above and in the form i was qustioning about it worked perfectly, but i have another form that has a similar issue, i´m sending how it appears on the screen and the error i get, could you help me?
- Attachments
-
- Error.PNG (19.74 KiB) Viewed 3686 times
-
- View.PNG (1.83 KiB) Viewed 3686 times
I have this problem too !
I have several person field, that I set with readonly(true) if it's not a creation, and for retrieve the data Inside this fields I set all that fields to readonly(false) just before saving.
Problem I noted (when it's not a creation) :
1) In Firefox and Chrome, even with the ready function, it doesn't work : the fields are invisible.
2) I f I tried to save the item, the fields are empty ! So it's a data loss.
The form is already in production and the problem has just been revealed because some important managers don't use internet explorer but only Firefox or Chrome!
So it's really important that we don't loose data, so thank you in advance for your help on this subject !
I have several person field, that I set with readonly(true) if it's not a creation, and for retrieve the data Inside this fields I set all that fields to readonly(false) just before saving.
Problem I noted (when it's not a creation) :
1) In Firefox and Chrome, even with the ready function, it doesn't work : the fields are invisible.
2) I f I tried to save the item, the fields are empty ! So it's a data loss.
The form is already in production and the problem has just been revealed because some important managers don't use internet explorer but only Firefox or Chrome!
So it's really important that we don't loose data, so thank you in advance for your help on this subject !
-
- Information
-
Who is online
Users browsing this forum: No registered users and 26 guests