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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -