Expand my Community achievements bar.

Dynamic field properties in the form?

Avatar

Level 2

Hi,

     I have a requirement to genereate forms with Adobe Livecycle Form services whoes field properties needs to be controlled dynamically while rendering the form. (Eg. A text box will be made read only, button gets hidden based on certain decisions at run time). We are planning to avoid client scripts due to different issues. Is it possible to achieve this with API or Services provided by Adobe LC?  Please help

Thanks in advance

-Naren

3 Replies

Avatar

Former Community Member

There is no API exposed at that level but you will be passing an XDP file that represents the template (in XML format) to the Forms Server. You can manipulate the xml file to achieve what you want.

Just to note that the normal approach is to write script in the template but set it to run server side that way no script is running on the client as per your request. Note that if yo decide to go this way that only a subset of events will fire on the server.

Paul

Avatar

Level 2

Thanks Paul.

I have one question, if the scripts are selected to run at Server side, how the event based(Like onclick)  scripts behave.

If I have to hide the a button from a user, on what event should I write script?

Avatar

Former Community Member

If you set up your form server call correctly all submit buttons on the form will be overridden with a submitURL. You would need to create a Servlet to recieve these calls and then in turn make a call to the HTTProcessRequest Method. This call is well documented in the Forms API and will deal with the server side code.

Basically when you set a buttons code to runn server side a round tri[ to the server is performed.

Paul