Hi,
I managed to create a fill-able form, that can be attach and send through email. Just wanna know if I can make the saved/sent form locked(user will not be able to change the entries in the saved fields) after the form is submitted and sent? Can I also make the text field disspear after the form had been received by the receipent?
Thanks loads.
Views
Replies
Total Likes
Hi,
You can make your fom readOnly to forbid changes on it.
If you are using Reader version 9 , you can simply do form.access="readOnly" and all fields will be locked.
IIn case you are using lower version, you have to make all fields readonly - field1.access = "readOnly", NumericFiedld.access = "readOnly", etc.
To hide control use next:
field.presence ="hidden"
BR,
Paul Butenko
Views
Replies
Total Likes
mm Sorry, may I ask: in which event/area should I place these codes? I am a bit new to LiveCycle.. Is it page presubmit? I want to put at the click event of the Submit button, but the event was locked.
Thanks a lot..
Views
Replies
Total Likes
Hi,
If you want lock form before submit, put codes at preSubmit event.
In case you want lock form after submit, put codes at posrSubmit.
Click event locked beacause you are using submit button, you can use mouseDown instead of click.
BR
Views
Replies
Total Likes
Well, I made the following solution used in my forms.
I use a regular-Button as "Submit by Email" !
ClickEvent of this Button :
for ( var i = 0; i < xfa.host.numPages; i++ )
{
var oFields = xfa.layout.pageContent ( i, "field" );
var nodesLength = oFields.length;
for ( var j = 0; j < nodesLength; j++ )
{
var oItem = oFields.item( j );
if ( oItem.ui.OneOfChild.className != "button" )
{
oItem.access = "protected";
}
else
{
if ( oItem.caption.value.text.value != "Submit by Email" && oItem.caption.value.text.value != "Print Form" )
{
oItem.presence = "invisible";
oItem.relevant = "";
}
}
}
}
var Mailto = "myemail@hoster.com";
var Subject = "Service Request";
var Message = "Here we go again !";
var mycc = "ccmail@hoster.com";
var Mail = "mailto:" + Mailto + "?Subject=" + Subject + "&Body=" + Message + "&cc=" + mycc;
event.target.submitForm ({
cURL: Mail,
bEmpty: true,
cSubmitAs: "XML",
cCharset: "utf-8"
});
This will set all Fields to "protected" and hide all Buttons but the "Submit by Email" and the "Print Form" Button.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies