Home › Forums › Classic DFFS › Checkboxes
- This topic has 27 replies, 3 voices, and was last updated 4 years, 5 months ago by DevAmb.
-
AuthorPosts
-
-
May 13, 2020 at 16:44 #29952
Hello Alexander
Despite the field returning False, or in this case, returning “Não” correctly, a marked checkbox is incorrectly displayed.
Uploaded picture
Attachments:
-
May 13, 2020 at 21:29 #29955
What is your language / LCID? – I may be missing support for that specific language. Try hitting F12 and type in this and hit Enter:
_spPageContextInfo.currentLanguage
Alexander
-
May 14, 2020 at 10:53 #29962
Uploaded printscreen
Attachments:
-
May 14, 2020 at 11:13 #29965
Thanks, I’m missing this LCID in a function that identifies “Yes” and “No” labels for this specific language – can you reply with the correct text for Yes and No so I can add them to the next version?
Alexander
-
May 14, 2020 at 15:23 #29971
Yes = Sim
No = Não -
May 14, 2020 at 20:40 #29977
Thanks, you can fix it by adding this to your Custom JS while waiting for the next version:
spjs.dffs.stringToBoolean = function (lcid, s) { var a = { "1044": { "Ja": true, "Nei": false }, "1026": { "Да": true, "Не": false }, "2052": { "是": true, "否": false }, "1050": { "Da": true, "Ne": false }, "1029": { "Ano": true, "Ne": false }, "1030": { "Ja": true, "Nej": false }, "1043": { "Ja": true, "Nee": false }, "1033": { "Yes": true, "No": false }, "1035": { "Kyllä": true, "Ei": false }, "1036": { "Oui": true, "Non": false }, "1031": { "Ja": true, "Nein": false }, "1032": { "Ναι": true, "Όχι": false }, "1034": { "Sí": true, "No": false }, "1038": { "Igen": true, "Nem": false }, "1040": { "Sì": true, "No": false }, "1041": { "はい": true, "いいえ": false }, "1087": { "Иә": true, "Жоқ": false }, "1042": { "예": true, "아니요": false }, "1045": { "Tak": true, "Nie": false }, "1046": { "Sim": true, "Não": false }, "1048": { "Da": true, "Nu": false }, "1049": { "Да": true, "Нет": false }, "1051": { "Áno": true, "Nie": false }, "1060": { "Da": true, "Ne": false }, "3082": { "Sí": true, "No": false }, "1053": { "Ja": true, "Nej": false }, "1055": { "Evet": true, "Hayır": false }, "1058": { "Так": true, "Ні": false }, "2070": { "Sim": true, "Não": false } }, r = s; if (a[lcid] !== undefined && a[lcid][s] !== undefined) { r = a[lcid][s]; } return r; };
Alexander
-
May 18, 2020 at 12:41 #30021
I added that code to the custom JS but rules defined in the past for checkedboxes that activate the visibility of thats still not working.
Uploaded images
Attachments:
-
May 18, 2020 at 16:23 #30027
Noticied that those rules only stopped validating in DispForm. In EditForm all is good.
-
May 18, 2020 at 20:20 #30037
Are you 100% sure you added it to your DispForm Custom JS?
Alexander
-
May 19, 2020 at 16:31 #30055
Yes did exactly on DispForm anyother consideration to fix this?
-
May 19, 2020 at 20:21 #30083
I have found a problem with the boolean slider implementation that caused this DispForm issues and will fix it in the next release.
Alexander
-
-
May 19, 2020 at 16:51 #30057
@Alexander we’ve found another problem caused by the non support the language (pt-PT), can you help us
uploaded image
Attachments:
-
May 19, 2020 at 20:25 #30084
This grouping function doesn’t use the same method so the value is either true or false if you group on a boolean field. My suggestion is to create a calculated field you can use here.
Alexander
-
May 20, 2020 at 10:20 #30106
Hello
Not sure if I fully understood the alternative for what we have today. Can you clarify with an example?
-
May 20, 2020 at 16:34 #30126
I meant to create a new calculated field in the list where you use a formula like this:
=IF([name_of_your_boolean_field]=TRUE,"Yes","No")
Now you can use this field in the GroupBy FieldInternalName to show “Yes” and “No” instead of true and false.
Alexander
-
-
May 20, 2020 at 17:36 #30127
Hi Alexander
It worked! Thank you.
But we’re still having issues with the missing support for pt-PT, any thoughts when youre going to release a new version containing that support?
-
May 20, 2020 at 17:59 #30133
This error is not related to pt-PT only, but is a general issue with getFieldValue on a boolean field in DispForm.
I’m working on it, but there are a lot of other changes in this version so It must be posted as a BETA first – hopefully tomorrow or Friday.
You can downgrade to DFFS v4.4.4.25 (March 14, 2020) – and add the override to the stringToBoolean function in DispForm and it should work.
Alexander
-
May 22, 2020 at 09:32 #30158
Looking forward for an update version
-
May 27, 2020 at 12:53 #30292
Hi Alexander
We’ve updated the development environment with the newest DFFS version (BETA, ATM) and we are running into some issues. It’s not recognizing the values 0/1 as true/false. Upçloaded image
Attachments:
-
May 27, 2020 at 14:04 #30295
Are you sure this field is actually added to all content types in this list? – go into the list settings and click the content type you are using and see if you can find the field there.
Alexander
-
May 27, 2020 at 14:47 #30296
Uploaded images. The field already created, long time ago, how can we be sure if it was checked the option do add to all content types?
Attachments:
-
May 27, 2020 at 15:04 #30300
Impossible to tell, but just scroll up the page, click the “Tarefa” content type, scroll down and select “Add from existing site or list columns” and add it to the content type.
Alexander
-
May 28, 2020 at 15:12 #30312
Hi Alexander
Sorry for the wrong info. We had de DFFS v4.4.4.17 and upgraded to DFFS v4.4.4.25 (March 14, 2020) not the BETA
-
May 28, 2020 at 15:37 #30321
After the update to DFFS v4.4.4.25 (March 14, 2020) the results were the ones I reported before
Summing up, fields that weren’t associated to a content type are returning errors and in last version we haed (.17) everything was ok except pt-PT support
Will BETA fix this?
Attachments:
-
May 28, 2020 at 15:54 #30324
The message telling that the field is not in the content type has been added after v4.4.4.17, but it was done to alert you about a field that is inserted in a tab, but cannot possibly be shown because it is not in the content type currently used in the form.
Do you have a form configured where the field is visible in the tab in one content type and not in another – and you want the field to just not render if it is not in the content type?
Alexander
-
May 28, 2020 at 17:30 #30329
Upload new prints
Fields, internally created from the lookup are returning that error when used in tab
Attachments:
-
May 28, 2020 at 18:12 #30334
I see. I cannot control how SharePoint handles adding the fields to all content types when creating “additional fields” from a lookup column, but I could of course remove the “warning” about the field not being in the content type, but it would not make the field visible – removing the warning would just make it harder to figure out why the field does not show.
Is the problem that you don’t want the fields added to the content type and just want the error to go away (but still not see the fields)?
Alexander
-
June 1, 2020 at 10:00 #30369
We manage to resolve our problem. thank you for the help.
-
-
AuthorPosts
- You must be logged in to reply to this topic.