cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Studio, LTS 2021 Button > Document Actions Slot > Activation Filter > Custom Expression

Sudarshan_Ghate
Confirmed Champ
Confirmed Champ

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

1 REPLY 1

Josh-F-Hyland
Employee
Employee

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/

 

--
Hyland Sales Solution Engineer