javascript - Force an Attachment to be open before Submitting a Form -
i using bpm software create approval process.
the first user submit information related document , attach document form being submitted approval.
i trying build approval form requires user open attachment (normally pdf) before being able submit approval decision. once user opens attachment (or clicks link) approval selections enabled (approve, rework, cancel) , user submit.
i happy if selections enabled , submit disabled, either way submittal cannot happen until after file or link clicked.
if you're talking client validation, trick:
$('#pdflink').click(function(){ $('#submitbutton').prop('disabled', false); });
your submit button html should this:
<input type="submit" id="submitbutton" disabled />
Comments
Post a Comment