How to implement “Data Validation” on a Contact Selector Control - InfoPath Dev
in

InfoPath Dev

How to implement “Data Validation” on a Contact Selector Control

Last post 07-17-2009 12:32 AM by lanijade. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-01-2008 02:20 AM

    How to implement “Data Validation” on a Contact Selector Control

    I am using a Contact Selector Activex Control referring to Manager Name. I need to make this field as mandatory. When it comes to default controls (Like TextBox, CheckBox, RadioButton etc.), using Data Validation I can make the field Mandatory,. But this Contact Selector control does not support Data Validation.

    The other way around I tried with VSTA coding. I set a value of contact Selector to one more textbox and used Data Validation to that Textbox. But this Scenario is working fine till the InfoPath form is Browser rendered. When I make the form rendered as browser, this code is not working.

    NOTE : When it comes to secondary data connection, why the Data Validation Property is disabled on secondary fields ?

     

    Thanks & Regards,
    Srikrushna Patro.
  • 12-01-2008 02:39 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: How to implement “Data Validation” on a Contact Selector Control

    HI,

    Data validation should be dsiabled for secondary data source fields.

    Read this link to add validation for Contact Selector:

    http://www.sharepointblogs.com/toth/archive/2008/09/16/make-infopath-contact-selector-required-in-browser-enabled-forms.aspx

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 12-01-2008 08:13 PM In reply to

    Re: How to implement “Data Validation” on a Contact Selector Control

    Hi Anuma,

    Thanks for the Link.

    Why is that,Data validation should be dsiabled for secondary data source fields ?

    I want to set the AccountId value of contact selector control to another field.So I had applied Rule to set the AccountId's value to another field,but the rule is not working for browser based infopath.

    One more point is that, how I can restrict the user not to select more than one user in contact selector ?

    Thanks & Regards,
    Srikrushna Patro.
  • 12-01-2008 08:34 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: How to implement “Data Validation” on a Contact Selector Control

    Hi,

    Disable the Contact Selector field after selecting the User name.

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 12-01-2008 09:06 PM In reply to

    Re: How to implement “Data Validation” on a Contact Selector Control

    Hi,

    Set the contact selector value to another new field. Put validation to the new field.

    So that you can make validation for contact selector control.

    Hope this helps.

    Rajitha
  • 07-17-2009 12:32 AM In reply to

    Re: How to implement “Data Validation” on a Contact Selector Control

    Here's a blog which talks you through how to do this http://www.myriadtech.com.au/blog/Alana/Lists/Posts/Post.aspx?ID=13

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