I have an agent that works when called using @command([toolsrunmarco]). But I since I need to add the prompt function of javascript, which primary use is to get comment from user before clicking process button (sending and changins of doc status) I instead run it on Web Common JavaScript with
The “Agent Done” is displayed but the agent does not work at all. I tried displaying the field value of some fields in the server console but it gets no value.
Can someone please tell me where I went wrong?
Also, since formula languange is working. I am also trying to call the javascript prompt function from the formula language.
Any idea if this works?
Would appreciate to get solution on this. Thanks so much!
with new docs, no way, except if you saved and re-open your document but why not use only -if you can- Javascript (instead an agent) to get the comment and change or not a field value before to save the document…
Example (Conditionnal submit) :
var comment = document.getelementById(‘FieldID’).value
var conf = confirm(comment +'\rDo you want submit this comment?)