Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all 5571 articles
Browse latest View live

Java script formula for dropdown list to determine possible selections in another dropdown list

$
0
0

I have seen related if not identical posts in here but I cannot still figure out the solution. I would appreciate any help. I am using LiveCycle ES2.

I have two dropdown lists: Province and City

Province contains (say) Alberta, Toronto, Manitoba
City has (say) A, B, C, D, E, F, G, H, I, J, K

 

I want the City (dropdown list) to behave in this way:

  • If I select Alberta, only A, B & C would be available for me to select
  • If I select Toronto, only D, E, F & G are available for selection
  • If I select Manitoba, only H, I J & K are available for selection

 

 

How do I write the script for this? Again, thank you very much for the help.

 

PeeGee


Cant see text field captionon page 2

$
0
0

Hi All

 

i need some help... hopefully this is an easy one

 

 

I have an expanding text field that rolls down to page 2.... i would like the cation area to be on page 2 but it disapears ..

 

any help would be awesome

 

Thanks

Expandaple text that doesn't overlap?

$
0
0

I am making a form with expandable text boxes.  I want to keep the format, so the entire page is "positioned".  Then I put each fill-in field in its own subform and made that "flowable".  Everything works okay, but when the field expands it overlaps whatever is on the next line.  How do I keep the formatting (I don't like the look of having the entire page "flowable") and have the entire page shift downward when a field is expanded.  Also, I sometimes have two fields next to each other on the same line.  I'd like it to work so that if one field gets expanded (downward), the next field on the same line stays aligned at the top.  Any suggestions?  I would gladly post the document if that is an option.  Thank you!

Life Cycle Forms vs. Forms Central

$
0
0

I'm a relatively novice Life Cycle Designer user. I see that Adobe Acrobat Pro 11 now comes with Forms Central instead. Can anyone shed light on the differences between Life Cycle Forms and Forms Central? I want the ability to make dynamic flowing tables . Is this sort of option available with Forms Central, or is Forms Central pretty bare bones and basic in terms of forms?

Exporting the value of Drop-down list failed

$
0
0

     Hello collegues!

I've created a simple form using LiveCycle Designer, which consist of two elements Text Box and Drop-down list:

 

The Drop-down list is filled from XML Data:

 

 

<MyData><country/><countries><item uiname="United States" token="US"/><item uiname="Vietnam" token="SRV"/></countries><state/><US><item>California</item><item>New York</item><item>Texas</item></US><SRV><item>An Giang</item><item>Bac Giang</item><item>Bac Kan</item></SRV></MyData>

Then i distributed the form, received a response and added it into the responses base file:

Later on I tried to export the responses, but it freezes. I think it loops because I can move the progreess window, I can close the Adobe Acrobat wndow, but when I try to cancel the exporting process nothing happens:

 

So I have found out that the problem is in Drop-down list, filled from XML Data and whome list items is binding from XSD or XML.

I don't know what I have to do next.

The links:

Simple form. XML data.

Convert number to word

$
0
0

How to convert numbers to words in Javascript?

 

In english its working fine. but when am formatting the same code for other language its not working.

 

Need to convert numbers to words for Italian languge.

 

please help

 

Thanks in advance

DataMatrix Barcode in SAP through AdobeLiveCycle

$
0
0

How to create a datamatrix barcode in SAP through Adobe LiveCycle Designer ? We have over 70 fields that need to be encoded into the datamatrix barcode and scanned from the label that is created...

Dynamic Table

$
0
0

I want to add a row in a table based upon Number given in a textfield, eg- if 5 is given 5 rows must be added,again if some other no. is given then that many rows only should be present + if no. is greater than the previous then those rows should be retained so that user dont have to write again , please suggest something. i have kept the row in a subform and i am able to get the result for 1st time but when changing the value desired reult is not obtained

 

for (var i = val; i>1 ;i--)

   {

     _test.removeInstance(i-1);

   }

this is the simple code used,i am not able to use it with right condition i guess.


Drop-down list searchable

$
0
0

Hi,

 

I have drop-down list of more than 700 entries. Need make this drop-down list searchable by any character. For example, I have abece, abe, abec, aab, aebcee....that meen if i write ab, then shows abece, abe, abec. By default, Livecycle now offers the first character search, but need more for drop-down list. Any suggestion how do it?!

Thanks!

Automatically populate another field

$
0
0

Hi

 

I have a form where the user enters a 10 digit number at the start of the form and i want to know how to have this number automatically enters it into another numberic field on page 3.

Making a particular word inside a text field bold

$
0
0

Hi,

 

I have a text field, which is populated from a xml field and I need to make a particular word in the same text field bold. Is there any way to do this?

 

Thank You.

Index Numbering

$
0
0

i want to add index numbering to subform and depending upon the visibility of a subform index should change. Any Suggestions ?

Multi-page subform and repeating page header value

$
0
0

Hi all.  I'm hoping someone can help me out here...  I am having an issue in my form, when repeating data across pages.  Basically, I have a Master page, with a Page header and page footer that I want to repeat on every page.  In between those, I have a content area where my report goes.  The main report consists of a table of varied sizes, and two subforms beneath it.  In essence, I have a text box in the Page Header section of my master that is bound to a header value in my XML.  I then have a table that is bound to a list, inside those header tags in my xml.  The form itself, is set to repeat for every PageHeader in my XML.  See sample XML below.

 

<Root>

   <PageHeader1>

      <TableInfo1>

         Multiple Rows here

      </TableInfo1>

   </PageHeader1>

  <PageHeader2>

      <TableInfo2>

         Multiple Rows here

      </TableInfo2>

   </PageHeader2>

</Root>

 

So, my issue comes in, if the TableInfo has too many rows, and needs to repeat on the next page.  So, page one, shows PageHeader1 correctly, and the first 20 rows of TableInfo1.  One the second page, the header textbox now shows the name in PageHeader2, however the tableinfo is continuing from TableInfo1 still.  And then, assuming TableInfo1 takes up two pages, my third page has an empty PageHeader value (since PageHeader2 was already used on page 2) and then shows the table info from TableInfo2. 

 

Does anyone have any idea how I can ensure that the PageHeader text value will be the same across multiple pages, if the table underneath it spans multiple pages?

Saving a form trhat everyone can open

$
0
0

What is the best way to save a writable form which I created in LiveCycle so that all recvipients can open it whether on a PC or a MAC?

unexpected results for flowed subforms

$
0
0

I have a large project I am charged with completing which has roughly 50 pages that are hidden/shown based on user input in the various pages.

 

A couple pages may need to have multiple instances if there are more than one person associated with the account. For these cases, I have created a flowed page that has 3 positioned subforms under it. Each of the positioned reports may need more than a single instance.

 

I've added a button to add a new instance (each positioned page is set to min 1, max 5).

 

As an FYI, each page has its presence set to hidden in the initialize event.

 

When I preview in this , the default page shows up, but when I click the button to add an instance, nothing happens.

 

This is the action builder script that does not seem to be working.

 

this.resolveNode('CIPShell.CIPIndv').addInstance(1);

if (xfa.host.version < 8) {

xfa.form.recalculate(1);

}

this.resolveNode("CIPShell").presence = "visible";

 

 

If I comment out the initialization script, then preview, the add page button works but 2 instances of the default page show up instead of only one.

 

I've tried a whole bunch of tweeks that have not worked. Any suggestions for a solution would be greatly appreciated! Thanks!


How to change the values of dropdown with two columns - offline form?

$
0
0

I am creating a offline Adobe interactive form.

 

I have two fields in a table :-:       Course Number and Course Name. 

 

I have a dropdown on Course Name (since users mostly know Course name)

This dropdown gets filled via a webservice (WS1) call to SAP in the form ready event

The webservice returns a table with two fields - CTEXT and CID.

I bound this Web service data connection to the Dynamic properties of Course name dropdown with CTEXT bound to "Item Text" and CID bound to "item Value" fields.

 

So when I choose the Course Name from dropdown , I can see the name in the CTEXT field (available against xfa.event.newtext propety).

 

In the exit event of the CTEXT field, I am able to pass the value to the CID as

 

this.parent.CID.rawValue = this.rawValue.          <------------ @1

 

So far so good.

 

I had to improve upon this a bit - like - when I input the CID, I have to get the Course Name.

 

So I called another web service (WS2) in the "exit" event of the CID field and it is fetching the Course name properly (WSTEXT) - I am able to store this in a text field.

 

and tried to pass the value to CTEXT as

 

this parent.CTEXT.rawValue = WSTEXT.rawValue

 

But this is overwriting the CID value because of the code @1

 

 

Can you please provide me code / syntax

 

1. To update the value of the CTEXT field based on the CID value (webservice WS2 call returns the CTEXT value)

2. Add the CID and CTEXT values to the CTEXT dropdown

3. while doing so, delete duplicates from CTEXT dropdown

 

Thanks,

GVR

Difficult time with applyXSL/loadXML

$
0
0

Hello,

 

Designer was recently brought into my organization and we've been converting documents into PDF forms for a couple weeks now.  Some of us have been trying to get the applyXSL() function to work without any success.  Does anyone have any sample code or pdf samples I can take a look at?  Something simple on a text field would be great but anything will help.  Documentation on the internet is sorely lacking for this function.

 

Thanks!

visible/hidden based on ddl in subform instances in Dynamic block

$
0
0

I have a drop-down list on Subform,on selection of a field some fields should get visible/hidden , it is working fine with the first instance but in other instances it is not working. i have written the js code on exit event of the ddl. Please suggest how to get it function for other instances as well

How to check the space(s) in a text field?

$
0
0

I have a text field with the following validation rules:

  1. not null or empty;
  2. alphanumeric;
  3. 8 characters
  4. no space between or before/after

 

I wrote some Javascript functions to do the rules 1,2,3, but don't know how to do with 4:

1. check if null or empty

function isEmpty(str) {
if(str == null || str.length == 0) {
  return true;
}
return false;
}

2. check if alphanumeric

function validateAlphaNumeric( strVal ) {
var regExp  = /^[a-zA-Z0-9 ]*$/;
return regExp.test(strVal);
}

3. check if 8 characters

function validateInputLength( str, length ) {

if(str.length == length ){

  return true;

}

return false;

}

 

Is there a way that I update check 2 with a regular expression including check 4 (check if any space bar input)? Or shall I use a for loop to check the whole string, if so, how? Or any other solutions? Sorry, I am not very good in Javascripts and regular expressions.

 

Thanks

Sam

Need help modifying the form with download/upload functionality

$
0
0

Hi,

There is a standard form in SAP to handle offline scenarios. This form has all the floating fields to handle huge text. There is one table which is an input for the subform n number of time. now our requrement is to modify the layout of the form because of one subform the outpput becomes very basic and symmetric. I am thinking if we create multiple subforms and pass 5 rows of the table in subform 1 and 3 rows in subform 2 and rest of the table rows in 3rd subform. Is this possible? Any other ideas are really appreciated. As the table is standard and the system cannot understand anything else when we upload, I cannot change the table.

 

Please help.

 

I have the standard downloaded form XML for reference, if you want to look at itForm_screen.jpg.

 

Thanks in advance, Raj

Viewing all 5571 articles
Browse latest View live


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