› Forums › Classic DFFS › Rule with Managed META Data column
- This topic has 8 replies, 2 voices, and was last updated 4 years, 4 months ago by Leonid.
-
AuthorPosts
-
-
October 28, 2019 at 18:38 #27505LeonidParticipant
Wondering how to make the RULE work with “contains”. Sofar its failing to recognize the match
Attachments:
-
October 29, 2019 at 20:27 #27515Alexander BautzKeymaster
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 -
November 4, 2019 at 22:43 #27581LeonidParticipant
Thanks Alex!
Any plans to make setting value available for META data field in the Rule? Sofar it doesnt work-
November 5, 2019 at 12:31 #27587Alexander BautzKeymaster
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
-
-
November 5, 2019 at 17:02 #27589LeonidParticipant
Please see snapshots. I tried setting Data Confidentiality field in the Rule to
Private
Private;None worked. Anything Im missing?
Attachments:
-
November 5, 2019 at 20:45 #27605Alexander BautzKeymaster
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
-
November 5, 2019 at 21:47 #27615LeonidParticipant
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:
-
November 6, 2019 at 20:10 #27624Alexander BautzKeymaster
It looks like you have white-space before and after the string – can you post your code?
Alexander
-
November 6, 2019 at 23:17 #27634LeonidParticipant
Its working now from the Rule. Thanks!
Attachments:
-
-
AuthorPosts
- You must be logged in to reply to this topic.