How to Use INR (Indian Rupee) Character in Adobe Livecycle?
Adding Ghost Text to LiveCycle Designer forms
Hi to all
i am new to coding and have been set a task of setting up a pdf form, but it requires ghost text to guide the users but also to allow them to type normal text when they fill in the form, so greyed out text for the ghost and black text for the completed field, but i have very little experience with coding and could do with some advice below is an examle of the text field i have in and would love to know what it is that i have to add to get this to work.
<field name="KnownMedicalConditions" y="76.2mm" x="66.675mm" w="127mm" h="6.35mm">
<ui>
<textEdit>
<border presence="hidden">
<?templateDesigner StyleID aped0?></border>
<margin/>
</textEdit>
</ui>
<font typeface="Calibri" size="9pt">
<fill>
<color value="153,153,153"/>
</fill>
</font>
<margin topInset="0mm" bottomInset="0mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<caption>
<font typeface="Calibri" size="9pt"/>
<para vAlign="middle"/>
</caption>
<validate>
<message>
<text name="formatTest"/>
</message>
</validate>
<assist>
<speak disable="1"/>
</assist>
</field>
<?templateDesigner expand 1?></subform>
<?templateDesigner expand 1?></subform>
<subform w="576pt" h="756pt">
<breakBefore targetType="pageArea" startNew="1"/>
<draw name="G30" x="146.05mm" w="31.75mm" h="12.7mm" y="3.228mm">
<value>
Transferring Attachments
I have a database connected XFA form that opens and fills out a separate 'report' form before sending it to the client via email. The issue i'm having is trying to transfer over all PDF attachments to the report form so that they get sent along with the report form.
var doc = event.target; var reportDoc = null; var attachment = null; var formData = dataBridge.getData(); //Open the report file reportDoc = app.openDoc({ cPath: "Design Request Report.pdf", oDoc: doc, bHidden: true }); //Attach documents if (doc.dataObjects) { doc.dataObjects.forEach(function(obj, i, a) { //Only pdf files will be supported if (obj.MIMEType == "application/pdf") { try { attachment = doc.openDataObject(obj.name); reportDoc.embedDocAsDataObject(obj.name, attachment); attachment.closeDoc(true); } catch(err) { if(attachment) attachment.closeDoc(true); errorUtil.throwError(err); } } else { xfa.host.messageBox("Warning: Only pdf attachments are currently supported.\n" + obj.name + " is about to be removed."); } doc.removeDataObject(obj.name); }); }
However regardless of the pdf attachment I use, I always get the following error when it tries to embed the attachment in the report:
InvalidArgsError: Invalid arguments.
Doc.embedDocAsDataObject:35:XFA:topmostSubform[0]:Page1[0]:button[0]:click
===> Expected 585365752 parameters.
Why won't Doc objects obtained from DataObjects embed themselves into another report?
Note that embedding event.target works as intended, but not an embedded version of the same file.
setFocus on particular repeatable instance
I have a button located at the bottom of a subform.
When clicked the subform repeats.
I want to setFocus on the field located at the top of the new sub-form
so that the user isn't looking at the bottom of the new sub-form after clicking the button.
Import XML data into PDF opened in Reader
Hello,
here is a question:
Is it possible to import XML data into a PDF-document using Adobe Reader?
I have created a new PDF-document using LiveCycle Designer. I have added a button with "xfa.host.importData();" (Javascript). When clicked, a browse windows opens and the selected XML-file (located locally on disk) is imported into the PDF. However, this only seems to work using Adobe Acrobat, not Adobe Reader.
Am I doing something wrong, or is the Reader just not good enough ;-)
Thanks for you responce!
Erik
Time calculations with FormCalc
Hello!
I'm trying to create a simple timesheet form in Designer but things don't seem to work the way I expected.
I have two Time fields where users are supposed to inform start and end times for a task. A third time field should display the elapsed time.
So I tried to solve this with FormCalc:
var interval = 0
interval = Time2Num(endTime.formattedValue, "HH:MM") - Time2Num(startTime.formattedValue, "HH:MM")
$.formattedValue = Num2Time(interval, "HH:MM")
It doesn't work. I mean, if I inform startTime = 10:00 and endTime = 11:00, the result is 23:00. How come?
Now, if I inform startTime = 09:00 and endTime = 11:00, the result is 00:00. Huh?
Please, could anyone tell me what I'm doing wrong here?
Season Greetings!
Marcos
Conditional Data Binding
I would like to bind data to a table only on the condition that one of the child tags has a certain value.
For example, let's say my XML file had the following structure:
<tag>
<condition>1</condition>
....
</tag>
I want to bind only if the condition tag has a value of '1'. Does anyone have an idea how this can be done?
Thanks
Is there any way to display dynamic value in tool tip? I have tried: this.assist.toolTip.value = this.rawValue; for a text field on "mouseEnter" event but it is not displaying the current raw value. It is displaying previous raw value of the field.. Plea
Is there any way to display dynamic value in tool tip?
I have tried:
this.assist.toolTip.value = this.rawValue; for a text field on "mouseEnter" event
but it is not displaying the current raw value. It is displaying previous raw value of the field..
I have written 'AAAA' but it is not displaying it on first mouseEnter event
When i am performing mouseEnter event for 2nd time it is giving the right value.
Now I have changed the value to 'BBBB' but on first mouseEnter event it is displaying the previous value i.e. 'AAAA'
How to calculate elapsed time with 3 fields TimeIn, TimeOut, and TotalHours.
I am trying to create a timesheet and have the total hours automatically calculate. How do i calculate the elapsed time given a TimeIn, TimeOut, and TotalHours section? Thanks.
How to limit message box to appear only once not multiple times
Hi,
I am using the following script that makes a message box appear. The problem is that people are complaining that the message box appear multiple times and that you have to continusly click ok like 11 times for the "warning javascript window" message box to go away.
Can I use a different script or reduce the amount of times that the message box appears?
if (this.rawValue > 132) {
xfa.host.messageBox("Maximum Sick Time is 132");
this.rawValue = 132;
Thanks!
How can I set a text field to convert all text entered to upper case when populated?
I want to have all entered text populated into specific text fields to automatically convert to upper case. I am working in LiveCycle Designer ES2.
livecycle action builder certain condition results in check a check box in another field
How do I create expandable text form fields on this form?
Situation: I am tasked to convert the above document designed in MS Word 2010 into a dynamic fillable pdf form.
Background:
- I edited the MS Word document so that the sections that need to be fillable have text boxes.
- I converted the Word document into a pdf document.
- I am using Adobe Acrobat X Pro to 'Create PDF Form'
- I formatted all the text font and font size to the Times Roman, size 12, per our facility requirements.
- In Properties of these text fields, I checked Multi-line and Scroll long text.
Assessment:
- I watched the video http://tv.adobe.com/watch/acrobat-x/creating-expanding-form-fields/ and still am having trouble with the next items.
- When previewed, the text fields allow for several lines of text, the scroll bar appears, but when I click outside of the text field, no plus-sign appears.
- I found and launched the LiveCycle Designer application that came with Acrobat X Pro and I have never used it before.
Recommendations: I hope someone can guide me to completing this dynamic form by:
- Recommending changes to the form so expanding form fields will work.
- Recommend other resources to learn more about LiveCycle Designer.
Thanks,
MNez
click a button to change the Master Page
Hi everybody,
I have a LiveCycle Designer question…
Is it possible to have a button onclick event to change the Pagination “Place” property of a subform? I would like to change the Master Page that a subform is placed on using a script on an onclick event. I’m not sure if this is possible… wondering if you knew a way…
Thanks a lot.
Jing
Adding Bullet Points and Ghost Text to a Form
Hello!
I am currently working on a form created in Adobe LiveCycle for my employer and had a request to add placeholder "ghost" text that disappears when a field is typed into. I was able to achieve this via scripting with the instructions here:
However, I am now faced with a different problem. The field itself is a multi-line text field that is supposed to include bullet points. Example below:
Title |
---|
|
In the past, I have added the bullet points later as regular text in Acrobat Pro, but since I now have to include the ghost text, I am not sure how to approach this problem.
I am up for any suggestions, as I am not sure what I am asking for is even possible. I'm a bit befuddled on this one!
Thanks in advance for your help!
- Ash
---------------------------------
Software:
Adobe LiveCycle Designer
Acrobat XI Pro
---------------------------------
Copy and paste multiple excel rowes into a fillable PDF all at once
Hi I was wondering if anyone could help me out with an issue that I am currently facing at work. I have a large quantity of data that I have to plug into standardized fillable PDFs. Changing the PDF form is not an option as this is the form that my company insists that we use.
Basically, I have rows and rows of data from excel that I have to transfer over to the PDF form.
The PDF form displays one field to enter the information. The current process is to take one line from excel at a time and then copy it into the PDF field. When the line is copied, I hit an ADD button at the button of the form, and a new field in the PDF is created. I then take the next line from excel, copy it into the PDF, hit add and then repeat.
This is obviously an inefficient practice. What I would like to do is just copy all of the data at once and transfer it to the PDF form. However, when I try this all of my data goes into the one PDF field. Everything just gets lumped together. The PDF does not create multiple rows for me.
Any suggestions on how to fix this would be greatly appreciated!
By the way I have been experiementing with selecting Tools -->Forms---> More Form Options ---> Import to try and get the data in that way, but for some reason the program is only letting me import XML files for some reason. Does anyone know what could be causing this problem as well?
Increase alpha (letter) in subform when dynamically adding a new page
Hello all. I have a question that I am very stumped on. I know very little about scripting, but I really like LiveCycle. I am currently using LiveCycle Designer ES4, Version 11. I have successfully created a form that I can add full pages to by clicking on "Add Page" using the Instance Manager. However, I am needing the form to function as follows:
1. The alpha character needs to increase by one for each page added (A, B, C, D, E... etc.).
2. I have limited the dynamic rows for "Volunteers" to 3, and I would like to have the "Printed Name(s)" show up on the pages that are dynamically added so that they don't have to retype it on each page.
The only area that needs to be dynamic is "Volunteers". I want the user to be able to add as many pages as needed (A, B, C, D+), and each page will propagate the information from "Volunteers" to next page(s), but each occurrence of the page need only be a static page length. (ie... Page 1 will contain information for item "A", Page 2 will contain information for item "B", etc. And those individual item pages should only be one page length.)
Any help at all would be so much appreciated. I have been researching and testing this form using different methods that I have found here, but I just can't find a solution to these problems.
(I tried to upload this file, but I am getting the error "You are not allowed to create or update this content"?? So, I have attached an image of the form, which will do little good I'm sure.)
Thank you in advance.
Message was edited by: Aimee Stephenson
Dynamically generate radio button list on runtime.
Hi experts,
The scenario I am developing is as such:
A questionnaire is to be built in adobe.
My data node structure is as:
- QUESTION
- QUESTION_ID
- QUESTION_TEXT
- SELECTED_ANSWER
- QUESTION_SCORE
- ANSWER_OPTIONS
- QUESTION_ID
- ANSWER_ID
- ANSWER_TEXT
- ANSWER_SCORE
My form design is:
- SF_QUESTION --> subform bound to QUESTION
- QUESTION --> textfield bound to QUESTION_TEXT
- SELECTED_ANSWER_ID --> hidden textfield bound to SELECTED_ANSWER
- QUESTION_SCORE --> hidden textfield bound to QUESTION_SCORE
- SF_ANSWER --> subform bound to ANSWER_OPTIONS
- RADIOBUTTONLIST
- RB - radio button
- RADIOBUTTONLIST
I am stuck on how should I bind to get an output like below: Needless to say that only one of the answers should be selectable.
Questions and Answer options are maintained in database so I cannot know at design time how many radio buttons will be there in the output.
How to hide rows when having Multiple line values
Hello,
I'm designing a form which include a table with only one header row and one body row. However, this row is set to have multiple values so it will depend on the data on the system it may have 1-n rows.
What i want to accomplish is:
Limit some of the rows to be visible when in one of the fields have a specific value "x".
Item | Main item | Description |
---|---|---|
10 | Product A | |
20 | 10 | Product B |
30 | 10 | Product C |
40 | Product D |
I want to restict the lines 20 and 30 to be visible in the form. So when field main item is populated, the line should be hidden.
if(Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.colProdDesc.rawValue == "");
then
Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.presence = "visible";
else
Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.presence = "hidden"
endif
Tried to use this code but the entire row gets deleted, i guess it is considering only 1 row...
Anyone knows how to accomplish this?
Many thanks in advance
Cheers
Date field populates depending on when form opens
Hi - I have a form to be submitted that includes a list of subjects for a particular meeting that happens each Monday. Can a date field populate with the date of that Monday when the form opens in the preceeding week? And then happen each week after that?
Thanks.