3 Replies Latest reply on Oct 27, 2009 6:10 AM by pguerett

    Dynamic field properties in the form?



           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



        • 1. Re: Dynamic field properties in the form?
          pguerett Level 6

          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.



          1 person found this helpful
          • 2. Re: Dynamic field properties in the form?
            naren.k Level 1

            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?

            • 3. Re: Dynamic field properties in the form?
              pguerett Level 6

              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.