allow to reference expressions from file
CompletedIn the actions script it is possible to use URL to the file with actual JS code.
In the form fields customisation same approach would allow 1 time write the text/assignment/function (i.e. for field validation) and reuse it across multiple lists and contenttypes.
This way if anything changes you don't have to go through all the lists/contenttypes and change this.
-
You can store your expression in a js or text file and load it by the function [[@Functions.GetFileContent('file path', false)]]. By setting the second parameter to true it will return directly the evaluated result for the expression.
This case is similar to this use case reading the text including expressions from a list item's data (for email body text approach): EvaluateExpression and GetFirstValueForQuery function0
Please sign in to leave a comment.
Comments
1 comment