How can I check inside my form if the variable “document” is already defined for the specific process instance? If so, then I want to show the download link, otherwise a message that “no document” is attached, it will be shown.
@cpbpm thanks for your reply and your kindness to share your ideas with me.
I would like to know how could I make the REST API call from the form. Should I use just plain JavaScript or do I need to consider other parameters (like angular directives) in order to make the REST API call?
An example or a similar thread would be really useful for me in order to understand the funcionality.
Are you using custom forms, if yes, you can use either java script can be used to invoke REST API to know whether variable exists for a particular process instance. From Google, check how to invoke Rest API using java script.