Conditional Text Alignment - InfoPath Dev
in

InfoPath Dev

Conditional Text Alignment

Last post 02-14-2007 07:57 AM by dpsavy. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-12-2007 11:13 AM

    • dpsavy
    • Not Ranked
    • Joined on 01-26-2007
    • USA
    • Posts 13

    Conditional Text Alignment

    Hello All,

    I was wondering if there is a way to align a textbox based on its value, whether through code or conditional formatting. For example if the value is "Yes" then left align. If "No" then right Align. I'm sure its something simple and I am just missing it. Thanks again for all the guidance.
  • 02-13-2007 12:01 AM In reply to

    Re: Conditional Text Alignment

    Hello

    Do you want to move the Control or the Text in the Control?
    I mean Do you want to move the Text box to left or just the text in the textBox to Left when it is Yes
    Kalyan G Reddy
    Infopath MVP 2007 and 2008
  • 02-13-2007 01:31 AM In reply to

    Re: Conditional Text Alignment

    This is interesting. There isn't actually a way to do this directly. What you'd have to do is create two text boxes with the different formatting and show hide the right one based on the value.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 02-14-2007 03:07 AM In reply to

    Re: Conditional Text Alignment

    Hello

    Adding to what shiraz has said above
    You can use two textboxes by setting left align(Yes) to one and right align(No) to another.
    Using Conditional Formatting, Basing on the Value selected you can show/hide the text Boxes so that always only one text box is shown.
    Kalyan G Reddy
    Infopath MVP 2007 and 2008
  • 02-14-2007 07:57 AM In reply to

    • dpsavy
    • Not Ranked
    • Joined on 01-26-2007
    • USA
    • Posts 13

    Re: Conditional Text Alignment

    I concur, thank you. It is interesting though seems like that would be right up conditional formatting's ally. Perhaps in a future release?
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.