There are some Frequently Asked Questions (FAQ) about layout, scripting support, and scope of Mobile Forms in LiveCycle ES4.
Can I browse and change images at runtime for Image field?
Why do barcodes and signature field in not appear in my form?
Answer: Barcodes and signatures fields are not relevant in HTML or mobile scenarios. These fields appear as a non-interactive area. However, LiveCycle Designer provides a new signature scribble field that can be used instead of signature field. One can also add a custom widget for barcodes and integrate it.
Is Rich Text supported for the XFA Text Field?
Answer: The XFA field, which allows rich content in Livecycle Designer, is not supported and is rendered as normal text without support for styling the text from the user interface. Also, XFA fields with comb property are displayed as a normal field, though there are still restrictions on number of allowed characters based on the value of comb digits.
Are there any limitations regarding using repeatable Subforms?
Answer: Repeatable Subforms with initial count of zero do not work. A workaround is to add a script on the formReady event that checks the instance count of that subform: If instance count is zero, add one instance and mark it hidden; else do nothing.
Why some text are truncated or are displayed incorrectly in HTML5?
Answer: Where a Draw or Caption text element has not been given enough space to display content, the text appear truncated in mobile form rendition. This truncation is also visible in the Design view of LiveCycle Designer. Though this truncation can be handled in the PDFs, it cannot be handled in the Mobile Forms. To avoid the issue, provide enough space to Draw or Caption Text so that it does not truncate in the design mode of the LiveCycle Designer.
I am observing layout issues related to missing content or overlapping content. What is the reason?
Answer: If there is a Draw Text or a Draw Image element along with another overlapping element at the same position (say a Rectangle), the Draw Text content are not visible if it comes later in the document order (in LiveCycle Designer Hierarchy view). PDF supports transparent layering but HTML/browsers do not support transparent layering.
Why are some fonts displayed in the HTML form different from the ones used while designing the form?
Answer:Mobile Forms do not embed fonts (in contrast to PDF forms where fonts are embedded inside the form). For the HTML version of form to render as expected, ensure that the fonts specified in the XDP are available on the server and on the client machine. If the required fonts are not available on server, then fall-back fonts are used. Moreover, if the required fonts are not available on client, then default fonts of the browser are used to render the text.
A lot of intermediate data structures and objects such as form dom, data dom, and layout dom are required to render an XDP to an HTML form.
For PDF Forms, Adobe Acrobat has a built-in XTG engine to create intermediate data structures, and objects. Acrobat also takes care of layout and scripts.
The size of the intermediate structure depends on the size of the original XDP and the data merged with the XDP.
- There is limited support for xfa.connectionSet script. For connectionSet, only server-side invocation of web service is supported. For detailed information, see Scripting Support.
- There is no support for $record and $data in client side scripts. However, if the scripts are written in a formReady, layoutReady block, the scripts still work because these events run on the server side.
- XFA Draw element-specific scripts such as changing the Draw text (or Caption text in case of fields) are not supported.
Is there any recommended naming convention and are there any reserved keywords to avoid?
- In LiveCycle Designer, it is recommended not to begin the name of an object (such as a subform or a text field) with an underscore (_). To use underscore at the beginning of the name, add a prefix after the underscore, _<prefix><objectname>.
- All Mobile Forms APIs are reserved keywords. For custom APIs/functions, use a name that is not identical to Mobile Forms APIs.
Are there any reserved keywords in Mobile Forms?
Answer: All Mobile Forms APIs are reserved keywords. For custom APIs/functions, use a name that is not identical to Mobile Forms APIs. Apart from reserved keywords, if you use object names that begin with an underscore (_), it is recommended to add a unique prefix after the underscore. Adding a prefix helps avoid any possible conflict with Mobile Forms internal APIs. For example, _fpField1