SPFieldOutcomeChoice

Home Forums Classic DFFS SPFieldOutcomeChoice

Viewing 7 reply threads
  • Author
    Posts
    • #15726
      Michal Riha
      Participant

        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:
      • #15734
        Alexander Bautz
        Keymaster

          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

        • #15738
          Michal Riha
          Participant

            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

          • #15742
            Alexander Bautz
            Keymaster

              Are you 100% sure this is in the same form as you have added the function to Custom JS?

              Alexander

            • #15778
              Michal Riha
              Participant

                Yes, I am sure. I am able to use getFieldvalue (in JS area) but not able to use Rules – read only field.

                Michal

              • #15782
                Alexander Bautz
                Keymaster

                  Please test the new version of spjs-utility.js to see if it helps when the function is in place in the file.

                  Alexander

                • #15800
                  Michal Riha
                  Participant

                    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

                  • #15837
                    Alexander Bautz
                    Keymaster

                      Thanks for the feedback. I’ll add setFieldValue support also in the next release.

                      Best regards,
                      Alexander

                  Viewing 7 reply threads
                  • You must be logged in to reply to this topic.