Conditional Text Field Sizes

Hello everyone, looking for a bit of help -
I have a text field on a PDF that gets populated with text via a third party software. (XML Data is populated into the text field via this third party)
Is there a way that Adobe can assess how much text its going to be populating into the text field.....and resize itself (preferrably by number of lines) to fit the text. My goal is to eliminate white space on my PDF.
Tips are greatly appreciated,
Robert

This is possible with dynamic forms created by LiveCycle Designer.

Similar Messages

  • Set background color for conditional text fields by click of button.

    Hi,
    I am new to apex, the scenario is when i click on a button i.e. Save, it shoulld compare 2 fields P1 and P2 which are text fields.
    If the value of P1 is greaterthan P2 then the whole P1 text field background color should change to "Red" otherwise in any other condition the P1 field should be "Green" color.
    In which section the color function should be called on the Save button?
    On the page in the HTML Header section i have added the below code but the background color is not getting set.
    <script type="text/javascript">
    function fncChangeColor()
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
    document.getElementById("P1").style.background = "RED";
    else {
    document.getElementById("P1").style.background = "GREEN";
    </script>
    Can any one help me in moving ahead with this scenario with a detailed information.
    Thanks,
    Priyanka.

    Hi,
    Call function on button URL target
    javascript:fncChangeColor()If button should submit page, then I think you do not need color field to green.
    Just change to run submit function.
    <script type="text/javascript">
    function fncChangeColor(){
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
      $x("P1").style.background = "RED";
      return false;
    apex.submit({request:"YOUR_REQUEST"});
    </script>Regards,
    Jari

  • Conditional text field

    I'm new to APEX and creating a Customer Comment application. I need to have my users enter an item number and want the description for that item to pop up next to it. Both the item number and it's description are LOV's and available by table. It will be more convenient for the user to enter the item number manually and have the descr pop up based on that rather than using a drop down to scroll through two thousand items.
    I know how to combine a select list with submit and a select list so that, for example the first list holds categories of comments (i.e., health or shipping), and the other holds detail (i.e., gluten, allergy; late, damaged) but I don't want the drop down capability because of the number of items. There must be a similar way to do this with static text fields?
    Thanks for your help!

    You will have to use AJAX to accomplish this task. here are a few steps to accomplish this.
    1. Create a JavaScript function to call a pl/sql procedure that fetches the description.
    <script language="JavaScript" type="text/javascript">
    <!--
    function getDesc()
      //here we make the request object which will run the GET_PART_DESC application process.
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_PART_DESC',0);
      //Here we add the PART_ID parameter to the request object so it know which part number to use in the where caluse.
      get.add('P150_PART_ID', $v('P150_PART_ID');
      //Here we perform the request to run the procedure and assign the returned value to gReturn.
      var gReturn = get.get();
      //here we put the return value into the page item P150_PART_DESC
      $x_Value('P150_PART_DESC'),gReturn);
    //-->
    </script>2 Create the application process GET_PART_DESC.
    2.1 Go to shared components > application processes > create.
    2.2 name the processes 'GET_PART_DESC'
    Make a pl/sql process which fetches the part description based off of a part ID. You will use the htp.prn() function to write the value so that the AJAX call can retrieve it.
    DECLARE
      v_desc VARCHAR2(255);
    BEGIN
      SELECT NVL(part_desc,'No Description')
        INTO v_desc
        FROM part_table
       WHERE part_id = :P150_PART_ID;
       htp.prn(v_desc);
    END;3. Lastly you need to make a call to run this bit of ajax to actually perform the call to the procedure. Which event you chose to use is up to you.
    3.1 edit your P150_PART_ID text object and scroll down to where you see "HTML Form Element Attributes". here you will put the event that calls the function you just created. You can enter onblur="getDesc();" to have the function run as soon as the user leaves the text field. You could also put onkeyup="getDesc();" so the function is called every time someone types something into the text field. In this instance i would recommend using onblur.
    Let me know if this helps or if you have any other questions.
    Tyson
    Edited by: Tyson Jouglet on Oct 17, 2008 12:10 PM

  • Changing font/-size of a text field on master-pages not possible? (field prop)

    Hi,
    I would like to change the font and font-size of a textfield on a master page.
    I wonder if I do anything wrong, because the font-options (size, font etc.) are simple greyed out / not avaliable, when I click on my text field.
    It seems, there is any way to customize the font-properties of a textfield (only) on master-page.
    Well I guess it would work with java script in init-event ...  but really, why the hell it should not be possible simply to use the properties/text properties?!
    Please correct me if I am wrong. Do I do anything wrong or is it really not possible to customize font of a text field on master pages?

    Hi,
    I was just about to post, that I figured it out.
    Actually, I use Livecycle Designer in SAP (transaction SFP). There seems to be a bug (one of hundrets by the way).
    If I click on a field, that does not have text-property e.g. subform, text-option menu greys out.
    Afterwards it stay this way until I click/doubleclick into a simple text (not text field). From that moment on, text/font-option menu is available again, until I click on something without text. => So pay attention and click wisely
    coming soon: "SAP meets Livecycle Designer - a (Bug)Lovestory", hardcover 124 Pages. ; )
    by the way: SAP does not sopport interactive forms higher than Reader 8.1. Its statement "8.1 is fine enough for everything you need in a SAP/Adobe Interactive Form". So beware of using XFA higher than in 8.1. sad, but true ...

  • Is it possible to add text field in condition type in PO?

    Dear Guru,
    Please kindly advice. Is it possible to add text field in condition type?
    I mean I have seen condition type "FRB1" Freight value in the condition detail we can input vendor code.
    So I would like to know is it possible to add text field in condition detail and how to set it up.
    Thank you very much.

    We would like to maintain some text in condition because of we would like to get that text to PO print out and we don't want to do enhancement.
    Ex: Condition Type: ZZZZ  Insurance  
    PO Print out show
    Item No.          Desc                                                  Qty  Unit Price  Amount
    10                 Item description                                  10000   10         100000
    20                 Item description                                  10000   10         100000
    30                 Item description                                  10000   10         100000
                         Insurance <<Description about insurance>>                  9,999
    Edited by: Saiyaman on Oct 1, 2009 1:35 PM
    Edited by: Saiyaman on Oct 1, 2009 1:36 PM

  • Forms: How to set a maximum size in Text Fields with automatic size

    ¡Hi!
    When I set a text field on my forms and I use automatic size for te text that the user can write, if the user don't need more space than the field size, when the text appears, Adobe Acrobat Pro always set the text-size to 14 or higher. How can I set a maximum size for that text? For example... 12 or 10...
    Thank you very much,
    Best regards from Spain,
    David.

    Ok. If I use a single line text field, changing the height of the field seems to be a simple way to solve the problem, but... what should I do when the fields are multi-lineal?
    Thanx for your quick answer.

  • Dynamically change the size of a text field.

    Is it possible to change the size of a text field depending on the amount of text in the field?
    Thanks,
    Chad

    You can find the answer from this post.
    jimmypham, ""Shrink to Fit" - Text Field capability?" #1, 18 Jul 2005 10:36 pm

  • Font size in text fields

    Is there a way to change the font size in a text box or text field on every webpage through one of the prefrences? I have looked on the forums here and searched Google, but could not find any answers.
    MacBook   Mac OS X (10.4.8)  

    One other thought,
    You can temporarily increase/decrease the font size on any page (also, affects all pages opened in a specific tab) by Apple Key plus the + sign for an increase, or the - sign for smaller text.
    Same too can be accomplished by using the "text size" icon in the toolbar. If one is not there, go to the View Menu>Customize Address Bar, dragging the "text size" icon to the tool bar. Select "done" on the panel.
    Post back

  • Size of text field

    I have a text field on report layout. In a particular scenario i want to make its size 0 or height =0 so that the text below it shifted above. How can i do it and where should i write the code?

    Set the horizontal and vertical elasticity property to Variable and in the format trigger set:
    if ... then
    return FALSE
    end if;

  • How to calculate the size of a Text Field?

    Is there a way to calculate the number of characters allow in a Text Field? If a uer type over this number of characters a popup window will appear telling the user that he/she has too much texts. Of course I could use the Limit Length, but I have to manually put texts into this text field and count them. If the Limit Lenth number is too small, the texts does not fill the whole text field. If the number is too big then the texts does not get printed.

    There would be no easy way to do this. You'd need to do some pretty fancy calculations, it would all depend on the size of the field, what font is used, the font size, whether it's been bolded, underlined, italicized, etc etc.
    What are you trying to accomplish? Make it so that the user can type in the text field until it fills and then have it stop without scroll bars coming up to allow him to keep typing?
    Chris
    Adobe Enterprise Developer Support

  • ADF Mobile: How to change the font size of an Input Text field in .amx view

    Is there a way to change the font size of the input data (not the label) in a text field? Changing the font size in the Style Font/Text settings doesn't seem to do anything for the label or the value in the input text field. Is this a bug or is there a way to get this to work?

    Hi Anna,
    depending on the UI element there are a range of ways. (and I'm sure people will post plenty of answers to tell you how).
    However, if generically the fonts in you portal/wd applications are too small, you should consider changing your theme so as to have larger texts. Otherwise you will either need to customise all your applications, or you will get quite a lot of inconsistency of presentation between your various WDA applications.
    Do a search on "themes for Web Dynpro ABAP" and you'll find loads of resources.
    Hope this helps,
    Cheers,
    Chris

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • Setting Character Limits or Font Size in Text Fields In Forms

    Hi everyone.  I've created a form but the problem is that people are changing the font size in order to fit mrore into the locked text fields.  I want to create either a chaacter limit or lock the font size as to prevent people from changing around the forms.
    Thanks for your help.

    ^^ In the instructions?  Or is there a way to do that in Acrobat?

  • Increase the Size of the Range Text Field in the Export Adobe PDF Dialog Box

    It’s not unusual for me to export a wide range of pages and I hate that the text field for Range is so small, often cutting off from view many of the page numbers.
    There’s a lot of blank space sitting there, begging to be used. A quick measurement shows that the field can be more than doubled from the current 150px to 380px.
    The attached PNG shows the text field I'm talking about.

    Here's a sample
    The debug version allows easy changing of the size, and yes all it takes is changing 1 number. The reason it is only half is probably aesthetic.

  • Changeing the size of text fields

    Hello I am trying to get my
    text fields for the login and password on the website I am
    working on to shrink to a smaller size to fit with the design of
    the website. So far I have only been able to change the amount of
    caracters the box displays in dreamweaver and not in the browser;
    what I want to do is change the hight, width, and font so they all
    can fit in a smaller area.

    CSS will do the trick -
    input { font-family:comic-sans, sans-serif; height:14px;
    width:60px; }
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "pmurchison" <[email protected]> wrote in
    message
    news:f90buo$9tk$[email protected]..
    > Hello I am trying to get my
    text fields for the login and password
    > on the
    > website I am working on to shrink to a smaller size to
    fit with the design
    > of
    > the website. So far I have only been able to change the
    amount of
    > caracters the
    > box displays in dreamweaver and not in the browser; what
    I want to do is
    > change
    > the hight, width, and font so they all can fit in a
    smaller area.
    >

Maybe you are looking for