I am creating a form which will have more than two users to action and fill the details in. How can I validate whether the two users are different. Can i use some detail like userid of the person??? is their any variable that can be used at all??
Form user validation
calcuations in adobelivecycle
Hello
i have made a form using adobe livecycle designer and i need to make calculations in the form.
this calcuation include:
1- i want to get average of 4 numeric values and put the average in another field> example; i have Cell A,B,C,D which are numeric, i want to obtain the average of the 4 values and put it in cell2
2- i want to obtain the standard deviation for about 4 cells which are numeric
( in adobe acrobat pro i was using this code:
var MyValues = new Array();
var MyFields = new Array("F0VerHR", "F1VerHR", "F1secondVerHR", "F2VerHR", "F3VerHR");
var oField;
var nField;
for(var i = 0; i < MyFields.length; i++)
{
nField = '';
nField = GetField(this, MyFields[i]).valueAsString;
if(nField != "") MyValues.push(Number(nField));
}
event.value = standardDeviation(MyValues);
i hope some one help me in that ane if any one have any pdf explain all calcultions that can be performed and codes.
thanks
Populate selected text from list box to another text box
How do I extract the user specific details in a form. Say if two different users are actioning on the same form, can their activities be differentiated/validated by some variable like userid?
I am developing a form in PDF Designer where multiple users action the same form. Based on the action of one user, the other person will action the next steps.
But a chance of same person actioning the form both the times exists. How can I answer this?
Is there a way where I can extract the userid of the person actioning the first time and use it to check who is actioning it the second time and prevent the same user from actioning twice!
Please help....urgent!
Remove a subform permanently using javascript
I have a travel approval form that has two sections -- Domestic and Foreign. Both sections have many required fields. I set up a radio button at the top to select one of those options, so if the user selects Domestic, I want the Foreign section to disappear completely. The problem I'm having is that it doesn't disappear -- it's no longer visible but it seems to reside somewhere in memory. Then, when I use a Submit button to send the completed form, I get an error message saying there are required fields somewhere that are incomplete. I have checked this scenario thoroughly, and the Domestic section is completely filled out. I have made all fields visible to make sure I'm not missing anything. When I remove the Foreign section within LiveCycle, the problem goes away, so I'm pretty sure that it's giving me the error because it detects the required fields in the Foreign section as incomplete.
In the radio button at the beginning of the form, I have:
// Show "DOMESTIC" section if (this.rawValue == "1") { form1.Domestic.presence = "visible"; form1.Foreign.presence = "inactive"; } // Show "FOREIGN" section if (this.rawValue == "2") { form1.Foreign.presence = "visible"; form1.Domestic.presence = "inactive"; }
For lines 4 and 10 I have also tried using:
_Foreign.setInstances(0);
In the Submit button of the Domestic section I have this code:
if (_Foreign.count > "0") { _Foreign.occur.min = "0"; Foreign.presence = "inactive"; }
database
Hello,
i have made filling form with many tables and calculation and many other informations numeric and texts
i dont know, my question maybe correct or in correct
i want to know database types that i cant use to connect with the form ( as i used adobe livecycle designer )
which database type is the best to perform this.
thank you
about standard deviation
Please Dear..
i have used adobe livecycle designer Es2 for making form, i want to calculate the standard deviation for 5 feilds named (F1,F2,F3,F4,F5) which is numeric and i think that this can be done through a custom calculating script.. can you help me please in a code to perform this calculation... the previous was in adobe acrobat pro but when use the same code it does not work with adobe livecycle designer.. please help me in this issue
thsi was the code that i use in adobe acrobat pro:
var MyValues = new Array();
var MyFields = new Array("F1", "F2", "F3", "F4", "F5");
var oField;
var nField;
for(var i = 0; i < MyFields.length; i++)
{
nField = '';
nField = GetField(this, MyFields[i]).valueAsString;
if(nField != "") MyValues.push(Number(nField));
}
event.value = standardDeviation(MyValues);
so i need code perform the same function for adobe livecycle designer
thank you
Stimulating key press with javascript under a button in pdf
Hi All,
Can it be possible to stimulate key press using acrobat javascript or livecycle javascript @under a button?
For ex. I click a button and that work as Atl + F ( file menu ) or win + R ( run dialog) on windows.
Hope this is clear.
Thanks
Arvind
Set Reading Options->language using LiveCycle designer 11.0
Hi,
I am trying to create a 508 compliant pdf form using Adobe LiveCycle designer 11.0. As a part of 508 compliance there is a need to set the Reading Options->language to 'ENGLISH' for all forms. For some reason even after applying the Quick Fix 1101.002 i am still not able to set the reading options. I am currently designing forms in SAP using LiveCycle designer 11.0. Please Advise?
Turn off calculations in livecycle.
Hi,
Can you please tell me how can I turn of calculations in livecycle designer. I still want to run other event scripts such as exit event or click. I only want calculation script not to run and those fields as editable by user.
Thank You
Arvind
hiding pages in livecycle
Hi
I Have 4 pages namely Page1,Page2,blank_page,Page4
There is a text field in Page2. When type a number in the text field lets say "2" the respective page will duplicate 2 times.
When we print the document, both side of the paper should get printed then the blank page should duplicate when the number of pages become even number.
I have use presence property of the page. and following previous binding property. I am getting an empty white page when i use presence as hidden.
Please help me why am i getting a empty white page when deleting?
Regards,
Maleen
How to add content and save a dynamic XFA form?
Hi There!
I am using Adobe LiveCycle ES4. I have created a dynamic form in the program and saved it as a dynamic XFA PDF. Now I would like to add content and save the document as a regular PDF. Unfortunately, when I try to save the new PDF with the content I entered I receive a message that states "Will not be able to save changes to any content" There is an option to convert the content to a word doc, JPEG etc. but you need to sign up for a monthly subscription in order to do so. I am on a windows computer. Is there any way to save this content without using this monthly subscription?
Thanks! Let me know if there are any questions.
Help with time calcutions in LiveCycle Designer
Hello,
I have a leave request form which has time options of days and hours, however I can't figure out how to calculate the total. For instance, if a person is request vacation time they can request a "from date" and a "to date" for 8 hours per days, however no Saturday and Sunday; and hours for partial days and then there is the total hours. How do I enter this calculation if either are chosen or both? Any help is appreciated.
Thank you in advance.
How to force alpha or numeric inside text fields - LiveCycle Designer 9.0
I am creating a form that requires City, State and Zip. I need to make sure that users do not put City, State and Zip into the City field; which someone so nicely pointed out to me as a problem with the form. Anyway, what I am looking for is a way to force the user to only be able to enter alpha characters into the City text field. I had glanced at the "Validation Patterns" OOTB functionality but I could not find anything listed that would complete the requirement.
Thank you,
Accessibility and Security issues with dynamic PDF created in Livecycle
So, I've created a dynamic pdf via Livecycle Designer ES 2. I have two major issues which may or may not be intertwined. The first is the security, which I've struggled with for a while. The second is with accessibility. Let me describe the security first because I think that is easier to describe.
Security
In Livecycle, I go to form properties - PDF Security and make sure- both require a password and the permissions checkboxes are left unchecked. No passwords anywhere have been set for the document. There are digital signature fields for the document.
In the PDF itself, I go to Protection - More Protection - Document Properties. In the Security tab, Security Method is default set to No Securityu. However, under Document Restrictions Summary it says the following are not allowed:
1. Changing the Document
2. Document Assembly
3. Creation of Template Pages.
And undernearth it says * This PDF form restricts some operations.
I accidentally saved the file as a static PDF and when I went to check the accessibility, it was complaining that security settings were restricting the accessibility. Ultimately, if I can fix the accessibility issues without needing to meddle with the security settings, that's fine with me.
Accessibility
This one is...weird. So, the dynamic pdf is created in Livecycle. I make sure when saving that in Form Properties, Save Options has Generate Accessibility Information (Tages) for Acrobat and Embed Fonts are both checked before saving.
Opening the document in Acrobat, things get...funny. I open the Accessibility tab, and initially everything was greyed out except the Setup Assistant. I went through that and there were no changes. I tried a number of things but nothing worked. I was doing something else and created another page and go back- and TouchUp Reading Order is now no longer greyed out. I have no idea why or what is happening, why I can't even run a accessibility check on the document.
I suspect that this at least partially stems from the automatic security preventing changing the document. But I have no idea how to disable the security on the document. Advice is very welcome!
Edit: So, I decided to try a very basic experiment. I created a single page dynamic pdf and put a checkbox in the middle of it. After saving, I opened it up within Acrobat. Sure enough, the same security settings seem to be present, and the accessibility options are greyed out. Clearly this is systemic, and I have no idea how to alter this.
How do I reference multiple pages/subpages?
I suppose that this ultimately can apply to objects as well as pages. At the moment though, I'm really more concerned with pages and subpages.
I want to hide/show multiple pages based on a drop-down menu selection. I have of course searched regarding this subject. Nobody seems to be quite asking for what I'm asking, and the most closely related questions only answer for a single object rather than multiple.
I have a dropdown menu that, depending on the selection, certain pages and subpages which were previously hidden become visible. However, I am trying to build in a certain forgiveness, so that if someone accidentally selects the wrong item on the dropdown menu and goes back to correct themselves, either (1) all of the associated pages will go back to their default state of hidden, before continuing forward and making certain selections visible, or (2) each object is manually named and told to go back to being hidden.
The only way I've found to do this is as follows:
switch (newValue)
{
case "1":
this.resolveNode("subpage_1").presence = "visible";
this.resolveNode("subpage_2").presence = "hidden";
this.resolveNode("page_3").presence = "hidden";
break;
case "2":
this.resolveNode("subpage_1").presence = "hidden";
this.resolveNode("subpage_2").presence = "visible";
this.resolveNode("page_3").presence = "hidden";
break;
case "3":
this.resolveNode("subpage_1").presence = "hidden";
this.resolveNode("subpage_2").presence = "hidden";
this.resolveNode("page_3").presence = "visible";
break;
}
This is tedious, time consuming, and inelegant. What I'd like to do instead is address multiple objects simultaneously. Something like:
switch (newValue)
{
case "1":
this.resolveNode("subpage_2", "page_3").presence = "hidden";
this.resolveNode("sabpage_1").presence = "visible";
break;
case "2":
this.resolveNode("subpage_1", "page_3").presence = "hidden";
this.resolveNode("subpage_2").presence = "visible";
break;
case "3":
this.resolveNode("subpage_1", "subpage_2").presence = "hidden";
this.resolveNode("page_3").presence="visible";
break;
}
I'm aware that this is seen as inelegant in and of itself, but given the overall design of the sheet, the naming scheme, etc, there's really no way to have the system call all pages or subpages starting with the same letters and such. So I'd have to name each one individually. And that's fine! But I've tried a million methods to no avail. I just want a more condense way to hide/make visible multiple pages and subpages simultaneously, or barring that to reset the visibility to the default.
Adobe FORMCALC Calculate is an Unsupported Operation Issue
For some particular my Adobe LC form is no longer recognizing my FORMCALC calculation. When switching from designer to preview PDF I received the following message:
Adobe Acrobat: Calculate is an unsupported operation for the --- my form
Any help would greatly be appreciated.
Thanks,
BT
Merging Vertically
Can anyone please give some steps
on how to merge vertically in a table?
Make fields required in expanding table
Hello,
How can I check for required fields in an expanding table? In my current setup, it only checks the first row to make sure it's filled out, but then allows the remainder to be empty when locking the form. Setting the two fields (Full Legal Name and Position Type) to "Required" doesn't do the trick, because I need all of the following to take place. I can't simply lock all fields in the form either, because there are a couple of others and a signature field that should not be locked. There are other fields in the form that I'm not showing here; that part of my form is working okay.
The submitter can click the "plus" and "minus" buttons in the row to add and remove spaces for additional names.
My script does the following:
- Check for all fields required from submitter. If a field is blank, cancel submit.
- Confirm permission to lock all submitter input fields. (If submitter clicks "No", then abort and allow submitter to continue entering data. If "Yes", continue.)
- Save As
- Submit file via e-mail
Everything works, except for check for blank rows #2 and up if the submitter adds rows. In my "real" Submit button (I'm using a "dummy" and hidden "real" button in order to customize the Javascript on the "real" one) I have the script below:
if (UsersRequiringAccess.Table1.RowUserName.FullLegalName.rawValue == null || UsersRequiringAccess.Table1.RowUserName.PositionType.EC.rawValue == "") { statusIncomplete = 1 } if (statusIncomplete == 1) { xfa.host.messageBox("Please complete all fields before submitting","FORM INCOMPLETE",0,0); javascript_abort(); } var retFromBox = xfa.host.messageBox("Your request form will be locked, saved and submitted -- continue?","Lock, save and send?",1,2); if (retFromBox == 3){ //Clicks "No" javascript_abort(); if (retFromBox == 4) //Clicks "Yes" { Field1.access = "readOnly"; Field2.access = "readOnly"; SubmitReal.event__click.submit.target = "mailto:.....
I'm also getting a syntax error on line #6, which for the life of me doesn't make sense. So, again, I need to check to make sure that if the submitter leaves no empty rows or fields in the table.
I'd greatly appreciate any help. Thanks!
Question on FormCalc
Not sure what functionality I need to be using but here is what I am looking to accomplish. I need to know how to count the number of rows in a table that are not null. I have a table with data but what I need to know is how many rows are filled out. In other words, if 5 rows out of 20 are filled out, I need my form to tell me that 5 rows are filled in. The specific data in the table is irrelevant for this calculation. Furthermore, I do not need the formula to validate the all columns in the row, just 1 column filled out is fine.
I tried the following formula but this is literally counting each row as 1 without looking for data. If the row is blank, I need the formula to skip that (or count it as 0). As mentioned, I can also pinpoint a specific cell if needed.
Count("Page2.Table1.Row1", "Page2.Table1.Row2")