how to Submit Infopath forms with Hidden Required fields ? - InfoPath Dev
in

InfoPath Dev

how to Submit Infopath forms with Hidden Required fields ?

Last post 12-17-2012 03:56 PM by burepallisri. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 12-13-2012 03:16 PM

    how to Submit Infopath forms with Hidden Required fields ?

    Answer

    Hi,

    I am unable to submitt the form due to validation error on some hidden fields.

    But the infopath form displays with message that validation is required on submit even if the control is hidden.

    Control is within a section which is also hidden.

    Any help is greatly appreciated.

  • 12-13-2012 03:22 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    This is how validation works - even if the user can't see the field, if it is invalid, InfoPath won't allow the form to be submitted. Your validation will need to take into account the conditions that would hide or show the field - if you are simply setting the fields to "cannot be blank" you will need to change to custom validation rules...
    Hilary Stoupa

  • 12-13-2012 03:40 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    i am sorry i did not get you can you please elaborate your solution atleast give me an example so that i can understand
  • 12-13-2012 03:43 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    i am writing the custom validation rule only .
  • 12-13-2012 04:02 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    In the header of this reply is a linked sample form. Save the form locally (right click and Save As...). From the location you saved to, right click the file and select Design to open in design mode. You'll be able to look at the rules I used there.
    Hilary Stoupa

  • 12-13-2012 04:55 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    thank you very much for your help.

     i am having one more doubt, can we do the same thing in the repeating table or not?

     because my scenario is like that only. moreover i am not interested to use two textboxes only one textbox.

    thank you,

    BVS Rao.

  • 12-13-2012 05:50 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    I am using two text boxes bound to the same field to simply demonstrate the principle - which is that if you have some condition wherein you will be hiding a field, you could use the reverse condition in your validation rule, so that your validation rule will only fire when the field, whatever it may be bound to, is displayed on the form.
    Hilary Stoupa

  • 12-13-2012 07:03 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    thanks for your immediate response. 

    Can you please just open my attached form and save it you will get the required field error even if it is hidden.

    can you please tell me how to get rid of it

    thanks,

    BVS Rao.

  • 12-13-2012 07:31 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    in my form i am hiding the reppeating table based on the user role.

     can you please tell me how to get rid of the hidden required field validation.

    thanks,

    BVS Rao.

  • 12-13-2012 07:36 PM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    here my point is the above form has to save without giving the validation error message.

    thanks,

    BVS Rao.

  • 12-14-2012 03:44 AM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    As Hilary pointed out, you would change the validation condition to be something like:

    field1 is blank AND

    User's current role is not equal to Role 1

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 12-14-2012 06:44 AM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    i had tried but it is not working.

  • 12-14-2012 06:45 AM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    can you please check with the attached form itself you will come to know the issue.
  • 12-14-2012 07:12 AM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    Could you post your form with your attempt in it?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 12-17-2012 11:01 AM In reply to

    Re: how to Submit Infopath forms with Hidden Required fields ?

    burepallisri:
    can you please check with the attached form itself you will come to know the issue.

    You haven't yet attached a form with the changes Hilary and I suggested.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 2 (16 items) 1 2 Next >
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.