How to allow numeric as well as decimal number in infopath optional field. - InfoPath Dev
in

InfoPath Dev

How to allow numeric as well as decimal number in infopath optional field.

Last post 01-02-2015 08:04 AM by Bre Huston. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-01-2015 07:21 AM

    How to allow numeric as well as decimal number in infopath optional field.

    I have few infopath optional field those data type is "Double". These fields are not mandatory. If user wants, he/she should be able to enter complete number or number with decimal both should accept otherwise should be empty. Using the below custom pattern matching trying to validate, but in this case field is becoming mandatory. How can I do this? \d+\.\d\d
    Filed under: ,
  • 01-02-2015 08:04 AM In reply to

    Re: How to allow numeric as well as decimal number in infopath optional field.

    Hello Rahul2011,

    In this case you need to add a second condition to include and fieldName is not blank.  This should allow users to leave the optional fields blank, but if a value is entered it will have to match your pattern.

    Please let me know if you need more help.

    Thanks!
    Bre

    Bre Huston | Project Manager

    Qdabra® Software / InfoPathDev.com / FormsQuo /  877.544.2389 main / 425.318.7843 direct

    Business Process Automation for Everyone – Streamline data gathering to turn process into knowledge.™


Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.