Avatar

Level 10
  1. I have some text boxes and some text fields.  The text boxes should not have tab control, they are really just labels for the text fields.  Is this a bad setup, or is that ok?

You should use the field captions. It will make your life easier in the long run. And is more compliant for accessibility, etc.

  1. I have a combo box at the top of the form.  I would like to have some code to control the rest of the form -
    • Hide or show text fields based on the option chosen
    • Set the value of text boxes based on the option chosen

Fairly easily done, there are lots of examples here in the forums. Combo boxes are called dropdown lists in LC parlance so search on that term.

  1. I have the first option of the combo box set as UNASSIGNED, but would rather it be blank until someone chooses an actual value.  Is that possible?

I think this example does what you're looking for:

http://www.assuredynamics.com/index.php/portfolio/scripting-a-null-display-pattern-for-a-dropdown/

Explore that site for other great coding solutions:

http://www.assuredynamics.com/index.php/code-solutions/

  1. I would like to export a list of the text field binding names, so I can just have that list to build my sql table.  Any quick way to get that?

You can use TextField1.rawValue = xfa.datasets.data.saveXML("pretty"); to load the XML into a text field which you can then print out or copy/paste into something else.

I haven't really done any data base/xml work with Designer but the fields don't have to match the fields in your database, you can use an xml schema to assign what goes where with the field binding.

  1. What are fragments?  I looked them up in help but I still don't understand what a fragment is, or why I would create one

Fragments are used for a couple of things.

  1. Re-usable boilerplate type fields, groups of fields, logos, etc. If you need to be able to change something across a bunch of forms then fragments help as you just edit the fragment and then open up the other forms to get them updated - unless you are using the server suite then I think you can have it automatically update all forms.
  2. Script Objects. Script Objects are used for consolidating re-useable code into functions. If you make your script object into a fragment you can share it among your forms and update code in one place - things you might use a bunch like validation routines, etc.

  1. Any other great parts of the program I should be using, that I am probably not?

Probably! There are lots of great sites and blogs around with samples, etc. Someone is doing video tutorials on youtube.

A great book to get started is Creating Dynamic Forms with Adobe LiveCycle Designer by J.P. Terry.

Some links to documenation:

Some tips of my own:

  1. Learn to use the layout grid, it helps a lot.
  2. Don't use underscores or dashes in field and object names. Use CamelCase.
  3. Name (almost) everything. Especially subforms and fields - things you'll be interacting with scripting.

There's more but that's off the top of my head.