Home › Forums › Classic DFFS › SPFieldOutcomeChoice
- This topic has 7 replies, 2 voices, and was last updated 8 years, 9 months ago by
Alexander Bautz.
-
AuthorPosts
-
-
February 20, 2017 at 13:50 #15726
Hi Alexander,
I try to use getFieldValue or setFieldValue with field type “Task Outcome” (internal field type is “SPFieldOutcomeChoice”) but both functions return error “Unknown fieldTyle: SPFieldOutcomeChoice”.
Will you add support for this field type to DFFS? This field looks like normal select/dropdown field..Thanks and best regards
Michal
Attachments:
-
February 20, 2017 at 19:41 #15734
I’ll add this to the next release of spjs-utility.js, but in the meantime you can add this to your custom js:
spjs.utility.getFieldValue_SPFieldOutcomeChoice = function(a){ return spjs.utility.getFieldValue_SPFieldChoice(a); }Alexander
-
February 20, 2017 at 20:04 #15738
I Alexander, thank you – it works like a charm.
The only thing what is still not working is setting this field as read-only (with same displayed text: “Unknown fieldTyle: SPFieldOutcomeChoice”.Michal
-
February 20, 2017 at 20:36 #15742
Are you 100% sure this is in the same form as you have added the function to Custom JS?
Alexander
-
February 21, 2017 at 21:54 #15778
Yes, I am sure. I am able to use getFieldvalue (in JS area) but not able to use Rules – read only field.
Michal
-
February 21, 2017 at 22:26 #15782
Please test the new version of spjs-utility.js to see if it helps when the function is in place in the file.
Alexander
-
February 22, 2017 at 16:18 #15800
Yes, it helps. I am now able to read value (getFieldvalue), make field read-only.
Not able to set value (setFieldValue) – but I do not need it.
Thank for your help.Michal
-
February 24, 2017 at 00:37 #15837
Thanks for the feedback. I’ll add setFieldValue support also in the next release.
Best regards,
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.
