Conditional Formatting - is valid ? - InfoPath Dev
in

InfoPath Dev

Conditional Formatting - is valid ?

Last post 02-20-2006 12:58 AM by nukkumatti. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-16-2006 11:19 AM

    Conditional Formatting - is valid ?

    Is there a way to apply conditional formatting when a specified field is valid (i.e. passes schema validation and has no red astericks or red outline)? I know this is possible in code, but was wondering if there was an easy expression for it in rules.

    If not, I think this would be a good addition to InfoPath.

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 02-16-2006 02:03 PM In reply to

    Re: Conditional Formatting - is valid ?

    In design mode we dont have anything to verify if a field is valid or not.
    Yes, I agree that this would be a good addition to InfoPath.

    Agni
    INFOPATHdev India
  • 02-19-2006 11:15 PM In reply to

    Re: Conditional Formatting - is valid ?

    Hey you both could you just give me a little hint how to do that in code. Would be a nice addon to my form solution.

    Thx

    Listen to Motörhead cos they play Rock'n Roll :)
    Listen to Motörhead cos they play Rock'n Roll :)
  • 02-20-2006 12:50 AM In reply to

    Re: Conditional Formatting - is valid ?

    Write a Method in the code which gets the nodename and checks if that node is present in the thisXDocument.Errors list.
    XDocument.Errors[<<<index>>>].Node will give you the node name. If it is present in the list then that node has validation errors.


    The method that you write above can be called in conditional formatting expression using "xdExtension".

    Agni
    INFOPATHdev India
  • 02-20-2006 12:58 AM In reply to

    Re: Conditional Formatting - is valid ?

    Ok thx,

    gonna try that.

    Listen to Motörhead cos they play Rock'n Roll :)
    Listen to Motörhead cos they play Rock'n Roll :)
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.