So I have this readtextfromfile function available to me through a plugin, but I don't understand why it's not working. I have the most basic of the basic interface here just to test its usage in my sandbox, and I'm getting this error:
Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error at function 'readtextfromfile' [line 2]:
That's it. I'm not sure what the issue is. Does anyone else have more experience with this function? Thank you!
a!localVariables( local!extractedText: readtextfromfile(ri!uploadedDoc, true), { a!sectionLayout( label: "Section", contents: { a!fileUploadField( label: "File Upload", labelPosition: "ABOVE", target: cons!KS_UPLOAD_FILES, value: ri!uploadedDoc, saveInto: ri!uploadedDoc, validations: {} ) } ) } )
Discussion posts and replies are publicly visible
A newly-uploaded document won't be available for any sort of use prior to the form being submitted. What you're seeing is an expected result of that.
This is an ages old topic and discussed endless times here. Documents are not available until submitted.
Build a process and display the content of the file in a second chained interface.