simple js submit button query! - help!
hi guys,
i have 1 page livecycle pdf form has fields , submit button. when form submitted sends pdf our server, saves it, attaches email emails it..
i have issue form being sent via email , submit button still clickable.
this code have on 'mousedown' of form
[code]
if
(form1.execvalidate() )
{
// field containers each page.
for (var npagecount = 0; npagecount < xfa.host.numpages; npagecount++)
{
var ofields = xfa.layout.pagecontent(npagecount, "field");
var nnodeslength = ofields.length;
// set field property.
for (var nnodecount = 0; nnodecount < nnodeslength; nnodecount++)
{
ofields.item(nnodecount).access
= "readonly";
}
}
button4.presence
= "hidden";
}
[/code]
what need avoid is, if user doesnt enter mandatory field locks whole form making impossible send again!
is there simple way once button clicked (and mandatory fields populated) forms buttons disabled on version received on email?
thanks looking guys
hope can help!
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment