Getting a validation error on a textbox - InfoPath Dev
in

InfoPath Dev

Getting a validation error on a textbox

Last post 05-07-2009 02:33 AM by weemandan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-01-2009 07:06 AM

    Getting a validation error on a textbox

    Hi,

    I'm really hoping this is a simply thing to fix!

    I've a form which has two option buttons depending on the option selected it toggles two text boxes on and off for being required fields.

    This all works fine, however when the boxes are required when entering any text the text box has a red dotted line border and the form is unable to be processed.

    Any thoughts?

    Thanks,

    Dan

  • 05-04-2009 04:06 PM In reply to

    Re: Getting a validation error on a textbox

    Are you sure you're not using data validation?  The red dotted lines around the box are when the data you input is not valid, which can be when you put the wrong type of data in a box (text in a number field, text in a date field, etc), or if your value does not fall within a specified parameter. If you simply have checked the box of "Cannot be blank," then this should not happen.

     

    You mentioned that you are toggling the "required field" attribute.  Are you doing this with code?

  • 05-05-2009 05:14 AM In reply to

    Re: Getting a validation error on a textbox

    Hi,

    Once verify the data type of the field in which you are entering the data. If you enter the invalid data then it will show the red dotted line. Make sure that the data you are entering in that field is valid.

    Swathip
    www.ggktech.com
  • 05-07-2009 02:33 AM In reply to

    Re: Getting a validation error on a textbox

     I'm not entirely sure why this works (did it a couple of days ago, so now forgot!) but I've added a second rule to the validation that says if the tetbox is blank, seems to work fine now :)

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