Conditional format for integer - InfoPath Dev
in

InfoPath Dev

Conditional format for integer

Last post 11-14-2006 08:10 AM by Matt Faus. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-13-2006 03:41 AM

    Conditional format for integer

    Is there a way to specify something must be an integer (of any length I know /d/d... specifies an integer of a fixed length) in conditional formating?
  • 11-13-2006 04:25 AM In reply to

    Re: Conditional format for integer

    Hi,
    Try out this Steps
    1. Right click on Text box property
    2. Select whole number (Integer) in data type text box.
    3. Click on Display tab
    4. Check limit Text box to check box and select number of charters you want.

    Hope this will help you.
  • 11-13-2006 05:58 AM In reply to

    Re: Conditional format for integer

    Hi,
    It is for a button. I want the button to only be enabled when a neighbouring 'text' box is filled with integers only (this number can vary in length). I can get the button to be enabled if I choose 'disable this control' if the text does not match pattern: /d/d/d/d so I was thinking I should just add lots of conditions so that the button is only enabled if the text box mathes the paterns /d, /d/d, /d/d/d.... etc i.e every size of integer only the text box can contain. This is tedious but I think it will work.
  • 11-14-2006 08:10 AM In reply to

    Re: Conditional format for integer

    Hi Mr. Turnips,

    You might try this formula:
    textBoxField + 15 > textBoxField

    I don't know if this will work, but something similar might be a little easier to input. Let me know what you get working if you decide to change it from what it is now.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.