Rule with Managed META Data column

Forums Dynamic Forms for SharePoint Rule with Managed META Data column

Viewing 7 reply threads
  • Author
    Posts
    • #27505
      Leonid
      Participant

      Wondering how to make the RULE work with “contains”. Sofar its failing to recognize the match

      Attachments:
    • #27515
      Alexander Bautz
      Keymaster

      Hi,
      This appear to be a bug and I’ll get it fixed in a new version in a day or two.

      Sorry for the inconvenience,
      Alexander

    • #27581
      Leonid
      Participant

      Thanks Alex!
      Any plans to make setting value available for META data field in the Rule? Sofar it doesnt work

      • #27587
        Alexander Bautz
        Keymaster

        I’m not sure what you mean – I can use a ManagedMetadata field in the Set field value in the bottom of a rule – can you give me some more details?

        Alexander

    • #27589
      Leonid
      Participant

      Please see snapshots. I tried setting Data Confidentiality field in the Rule to
      Private
      Private;

      None worked. Anything Im missing?

      Attachments:
    • #27605
      Alexander Bautz
      Keymaster

      Ah, you are right – when using the “Only if the field is empty” checkbox the value is not properly validated as empty and the field will not be set. I’ll get this fixed in the next release.

      Until then, you can put this in your Custom JS:

      function setDataConfidentialityToPrivate(){
          if(String(getFieldValue("YOUR_FIELD_NAME")).length === 0){
              setFieldValue("YOUR_FIELD_NAME", "YOUR_VALUE");
          }
      }

      And put the function name setDataConfidentialityToPrivate in the Run these functions / trigger these rules field in your rule.

      Replace YOUR_FIELD_NAME and YOUR_VALUE with the correct values.

      Alexander

    • #27615
      Leonid
      Participant

      Thanks Alex!
      Please verify if behavior in the snapshot when the Rule w/o checkbox tries to populate a META data field.
      The value doesnt resolve automatically to the Term.

      Attachments:
    • #27624
      Alexander Bautz
      Keymaster

      It looks like you have white-space before and after the string – can you post your code?

      Alexander

    • #27634
      Leonid
      Participant

      Its working now from the Rule. Thanks!

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