-
I am new to Orchard Core and am having difficulty constructing a conditional statement in JavaScript. I have a workflow that is triggered when content is updated for a specific content type. I want to then check if a textfield property within this content item contains a specific string. This is what I am attempting: I've looked thoroughly at https://docs.orchardcore.net/en/latest/docs/reference/modules/Workflows/#javascript-functions and other resources online but I can't seem to piece together how exactly to accomplish this. Any insight would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
workflow().Input.ContentItem.Content.ContentType.Status.Text === "Completed" is correct. |
Beta Was this translation helpful? Give feedback.
workflow().Input.ContentItem.Content.ContentType.Status.Text === "Completed" is correct.