Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all 16286 articles
Browse latest View live

Replace a character in the string using JavaScript

$
0
0

Hello,

 

I would like to ask for help. I have a field in the xml file, which contains a string, that is bound to a text box on the form.

What would be the syntax to replace a special character in the string with the carriage return?

 

Thank you.


TimeSheet to round to nearest quarter hour

$
0
0

I have this time sheet that has four "In" and four "Out" columns,and calculates hours worked in a two week pay period. There is a column on the right that calculates the hours worked for the day (see script below). I need it to round to the nearest quarter hour i.e.,

 

If an employee arrives or leaves between:

 

":00" to ":07" minutes after the hour, calculate from the top of the hour

 

":08" to ":22" minutes after the hour, calculate from quarter after the hour

 

":23" to ":37" minutes after the hour, calculate from the half hour

 

":38" to ":52" minutes after the hour, calculate from three quarters past the hour

 

":53" to ":60" minutes after the hour, calculate from the top of the hour

 


Examples:

 

An employee records that they arrived at 8:07 a.m. Calculate from 8:00

 

An employee records that they arrived at 8:08 a.m. Calculate from 8:15

 

An employee records that they arrived at 8:22 a.m. Calculate from 8:30

 

An employee records that they arrived at 8:37 a.m. Calculate from 8:45

 

An employee records that they arrived at 8:53 a.m. Calculate from 9:00

 

Script in "Hours Worked" column


// compute block 0
var StartInterval = 0
if(HasValue(OUTA1[0]) and HasValue(INA1[0])) then
StartInterval = Time2Num(OUTA1[0].formattedValue, "HH:MM") - Time2Num(INA1[0].formattedValue, "HH:MM")
endif

 


// compute block 1
var LunchInterval = 0
if(HasValue(OUTA1[1]) and HasValue(INA1[1])) then
LunchInterval = Time2Num(OUTA1[1].formattedValue, "HH:MM") - Time2Num(INA1[1].formattedValue, "HH:MM")
endif

 


// compute block 2
var EndInterval = 0
if(HasValue(OUTA1[2]) and HasValue(INA1[2])) then
EndInterval = Time2Num(OUTA1[2].formattedValue, "HH:MM") - Time2Num(INA1[2].formattedValue, "HH:MM")
endif

 


// compute total time in hours from the millisecond value
Round(Sum(StartInterval, LunchInterval, EndInterval) / 3600000,2)

I know in excel I can use =(ROUND(B2*96, 0)/96)-(ROUND(A2*96, 0)/96) to get the results I want. So I tried entering in something similar into the FormCalc script but with no luck. If you could tell me what I need to do to get this to work I'd be very appreciative. Thank you, Derrick

How to convert lowercase to uppercase characters?

$
0
0

Hi!

 

I am a newbie to LiveCycle; I have created a form but I want all characters in the field to automatically be converted to uppercase, regardless of the input.

 

 

Thanks

Jofar1

Autopopulate text field based on drop down menu.

$
0
0

Ok.  I know alot of people have asked questions about this but none of them seem to match what I need to do.

 

I am trying to make an equipment request order form that will be automatically filled out based upon what is selected from a drop down menu.  For example if someone selects "ACLS" text box 1 would automatically generate with "Adult CPR Maniken" and text box 2 would generate "Child CPR Maniken".  If someone was to select "PALS" text box 1 would automatically generate "Infant CPR Maniken"....and so forth.  Any help would be greatly appreciated.  I am just a Paramedic with some computer skills, not an expert by any means!

 

Thanks!

If statement, when true, runs two actions

$
0
0

How do I write an if statement that when true, runs two actions?

 

if (NumericField1.rawValue > 0)

{

    xfa.resolveNode("#pageSet.Page1.Image1").presence = "visible" + Rectangle1.presence = "visible";

}

Can Not View From from different client

$
0
0

I have a form created in Livecycle 8.3 It is interactive and uses an XML data base. When i test the form it works great. It is secured with a password and uses extended rights through Acrobat Pro 8.3 When i send this to people using Reader to try it, they all get the same message: Need a newer version, then it opens and works great. If a user was opening with Standard 8 or Pro 8, the same thing happens except no version error message and the data does not poulate correctly. I am at my witts end...Help!!

PDF Signatures - Error Message

$
0
0
When signing a PDF signature field component, results in the following 3 error messages after each other (text correctly shown, spaces and all)

1) The FieldMDP expression for this signautre is invalid

> After clicking on OK on 1), i get the next err message

2) Creation of this signature could not be completed.
Unknown error
Support Information: CSigField-1013

> After clicking on OK on 2), i get the next err message

3)The document could not be signed.
There was an error when attempting to commit this signature. The document was not saved.
The save operation was cancelled.


Any takers?

Thanks in advance for any help

Arabic Text inside Static PDF LiveCycle Form is stored in weird order.

$
0
0

Please check this thread:

 

http://forums.asp.net/p/1828622/5097523.aspx/1?Re+SQL+Server+2000+Full+Text+Search+using+C ONTAINS+to+search+Arabic+Text+is+not+working

 

After doing lot of testing and investigation, I found out the following on SQL Server 2000 under Windows Server 2003 using Indexing Service:

 

1. Arabic Text in Static PDF Files (created using Adobe LiveCycle Desinger Static PDF with XDP for data binding) is stored using the unicode of the connected char shapes in reverse order !!!!!!

 

2. Arabic Text in MS Office Files is stored using the unicode of the isolated char shapes in normal order. This is the correct way as per my expectation.

 

I verified this when searching for the "Sick Leave" Form Requests. I found, by chance, the Arabic Text of "Sick" inside the "Characterization" result field and while it looks normal in Query Analyzer Window, when I verified the unicode value of each letter, I figured out what is going wrong. I used the following code in Query Analyzer to verify:

 

 

print unicode(substring(N'ﺔﻴﺿﺮﻣ', 5,1))

print unicode(substring(N'مرضية', 1, 1))

print nchar(65251)

print nchar(1605)

 

--- result is --->

 

65251

1605

م

 

The following queries returns entirely different results:

 

select * 
  from openquery(ISRV,  'Select Filename,PATH,rank,url,characterization from SCOPE() where contains(contents, ''"ﺔﻴﺿﺮﻣ"'')') 
order by FileName 


select * 
  from openquery(ISRV, 'Select Filename,PATH,rank,url,characterization from SCOPE() where contains(contents, ''"مرضية"'')')
order by FileName

 

Now next question is why the Arabic Text inside the Static PDF File is stored in this wiered format ????!!!!

I have stored some Arabic Text in a regular TXT File, but until now, it is not picked up by the Indexing Service scanning engine (since one week). Once it is scanned, I will confirm the result.

 

I think I need to post this question to Adobe Support.

 

Any one can help with this?

 

Tarek.


dropdown list scroll bar

$
0
0

I'm new to livecycle and have created a dropdown list on a form. 9 items have been added to the drop down list.

 

However when I open the dropdown list only a few items are shown and no scroll bar is shown.

 

Is there a setting or property I need to change to view the scroll bar and the additional items.

 

Thanks in advance.

Hiding a master page based on a condition

$
0
0

Hi All,

 

I have created a form which has data on odd pages and some terms and condition on the back pages(even) pages. I am using Adobe Livecycle Designer ES version 8.1.2

 

For this I created 4 Master pages.

FirstPage - Pagination -> Odd/Even - > Odd (front) pages

                                   Placement -> First Page (in Page set)

 

Front Page - Pagination -> Odd/Even - > Odd (front) pages

                                   Placement -> Rest of pages

 

BackPage - Pagination -> Odd/Even - > Even (Back) pages

                                   Placement -> Rest of pages

 

Dummy - Pagination -> Odd/Even - > Blank page

 

I dragged the content area of back page on the dummy page.

 

This set up works fine for printing.

 

I have additional requirement of archiving, emailing and faxing. While sending a email or fax or archiving, the data should be continuous, the back master page should be removed otherwise they show in alternate pages as blank pages even if i set the presence property to visible(print only) .


Are there any settings which can be done to remove the master pages that are not needed based on a codition.
Any help will be appreciated.

 

Regards

Neha

Is there a possibility, that subforms flow up again to avoid big wide gaps in a document?

$
0
0

Pages are set to flow Direction Top to bottom and page breaks are allowed within the page

 

The subforms on the page are set content: positioned, auto fit in height.

 

So is there a way to avoid unwanted creation of the gaps?

Android Mobile Browser (Chrome/FF) Fast Web View

$
0
0

Although I have checked fast web view in an ES4 Designer (dynamic PDF) form, when I upload to my server and view in FF or Chrome using an Android device, it does not display online (see below: works OK when using a Windows desktop).

 

It asks to download the PDF form and tries to open it in latest Acrobat Reader DC, but then shows an error when trying to open and view: "Please wait...If this message is not eventually replaced by the proper contents..."

 

I also used Google Drive to download a copy of the same PDF form onto the same Android device (Nexus 10 tablet-OS: Lollipop 5). Same result.

 

As mentioned this same form works perfectly on Win 10 Desktop when previewed in ES4 Designer or Acrobat Pro DC, or uploaded and viewed online.

 

Not sure what I am doing wrong? Any help appreciated.

Formcalc time calculation

$
0
0

I'm trying to design a from in adobe livecycle cs2, the from has a table 5 rows,with column "start time" "end time" "hours work" and footer row with column "total time". I need to get for each row hours work answer (end time - start time) no problem, I cant get the hours worked to add up to give me total time answer! Can someboddy please help me

Resignation from overriding calcluation value

$
0
0

Hello Everyone.

 

I've created form with calculated drop-down list.

Value is calculated, user can override it and select from drop-down list alternative value.

Problem is, user can not select from drop-down list value which is equal to calculated value.

Any thoughts?

 

Thank you for support

Sebastian

Error using PDF Form from SAP/R3.

$
0
0

I am not sure if this is the right section to report this issue.

 

I got report from SAP Staff. Following are the detials.

 

Error is thrown when trying to display PDF From in SAP R/3.

 

The error is:

 

Call contained error(s). ADS (2Invalid HTTP Connection: ADS)
Message no. FPRUNX003.

 

Any idea what is the problem?

 

Tarek.


Changing border colour of required item

$
0
0

Adobe Livecycle Designer ES v8.2.1

Dynamic PDF

 

I've spent the last hour searching through broken links and tangential tutorials. I have a required exclusion group (radio buttons) and the user must choose one of the values in order for the form to be valid. The problem is, I have hundreds of checkboxes and they all have a gigantic red border stuck around them. There is no highlighting when one is not checked and the form is submitted, they are simply all bright red.

 

Here's what I have tried:

 

Exclusion group on "initialize"

 

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

 

 

Exclusion group on "form::ready"

 

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

 

 

Exclusion group on "layout::ready"

 

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

 

 

None of these are working. Is there honestly no way to control the border colour / visibility of a required item? I can make the whole item disappear easy enough but that doesn't solve anything. Setting the default value is not an option as the client wants to ensure all fields have been thoroughly reviewed by the "clickee"

 

Thanks for your time.

Conditional Required Fields

$
0
0

Is it possible to have conditional required fields. As in if a certain box is selected, certain fields will become required. Take a look at this example if this needs clarification. In this example, the left 3 text boxes are required. If I check the middle checkbox, can I make it so the 3 text fields in the middle now become required as well. Furthermore, if I check off the 3rd check box (rightmost one), can I make all of the text boxes as required fields. Thanks!

 

example1.GIF

Adobe Acrobat DC erased my Adobe LiveCycles

$
0
0

Hey All,

 

I have a pretty in depth form that I have been updating in Adobe LiveCycle for several years now with populated large dropdown options and so on, but with the Cloud I have to also download the LiveCycle program separately. I have no issues with that, but with the latest upgrade to Adobe Acrobat DC from the cloud deleted my LiveCycle. Does anyone else have this issue? Any suggestions? Is LiveCycle just that out of date? To me it had so much more control over forms than anything I have tried in Acrobat and I really need that kind of control. I do not see where in Acrobat to populate my dropdown menus and in the last Acrobat XI it would automatically move me back into LiveCycle when I did try to update my forms so I was ok with that.

 

Please any advice at all is appreciated! I have searched and searched and I see what looks to be a LiveCycle ES4 for sale on Adobe.com, but is this not part of the cloud? Are they still upgrading LiveCycle? Do I bother trying?

 

Thank you!

Erin

Adobe LiveCycle closes out when I try importing a PDF.

$
0
0

When I try to import an already existing PDF to Adobe LiveCycle Designer ES4, it completely closes out of Adobe LiveCycle.  Any ideas why it does this or how to fix it?  I am using Windows 7.

How to set display patterns on a decimal field to handle user text entered in error.

$
0
0

Hi

 

I'm creating a PDF in LiveCycle, which has a decimal field with the display pattern 'num{zzz,zzz,zz9.99}'.  The idea is for users to enter a numerical value with a maximum of two decimal points (i.e. 1,234.01)

 

Now I'm testing this form out to see whether it'll handle any incorrect user entries - especially the scenario where a user enters some string (letters) in this field by error. When I'm testing this scenario on Acrobat Pro, any text entries will be cleared out as soon the user tabs out of the field (which is exactly what I want it to do as it only should accept numerical values).

 

However when testing this out in Adobe Reader (with Reader Extendability switched on), any text entries are replaced with a "0.00" when the user tabs out of the field.  Unfortunately this is not what I want .  Replacing an incorrect entry with a 0.00 is actually a misrepresentation, because 0.00 is a valid entry that the users should be allowed to enter if they want to (hope that last sentence made sense ).

 

Does anyone have any ideas how this can be sorted? I'm thinking this is something to do with the "Allow Empty" or the "Allow Zero" settings on the display pattern window.  But i haven't got a clue on where to start because I've never used those settings before. Any help anyone can provide me will be greatly appreciated.  Thanks. display pattern.JPG

Viewing all 16286 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>