12-16-2024 11:38 PM
Dear Experts,
I have a custom schema ("Validation") that has a Yes/No field called "Validated". The schema is attached to a document type called "MedicalRecords". I want to be able to toggle a button in Document Actions Slot if the value Validation.Validated is Yes. What is the correct syntax for custom expression to enable / disable this button? I have tried document.properties.validation.validated === null and various other combination. Any guidance would be appreciated.
Thanks,
SG
12-17-2024 11:23 AM - edited 12-17-2024 11:24 AM
The custom expression syntax must be valid JavaScript, not Polymer flavored e.g.:
document.properties['validation:validated'] === 1
https://doc.nuxeo.com/studio/javascript-expression-examples/
12-18-2024 02:37 PM
Thank you @Josh-F-Hyland
When I look at the JSON, I see the following:
"properties": {
"Validation:Validated": "No",
"google_ml:imageTextDetection_content": null,
},
"google_ml:speechRecognition_language": null,
"google_ml:speechRecognition_confidence": null,
I am curious as to why Validation schema shows up under "properties" but other schemas do not?
I appreciate the help!
12-18-2024 02:42 PM
The REST API allows you to control which schema values are returned via the "properties" header:
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.