How do you set a True / False on the Add a Rule Action dialog box - InfoPath Dev
in

InfoPath Dev

How do you set a True / False on the Add a Rule Action dialog box

Last post 01-28-2009 05:50 PM by Ian Dawson. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-27-2009 01:55 AM

    • Ian Dawson
    • Top 50 Contributor
      Male
    • Joined on 01-01-2009
    • Shellharbour NSW Australia
    • Posts 154

    How do you set a True / False on the Add a Rule Action dialog box

    Do you use False()  or Use True(). 

    I don't think so.

    True and False a values not functions. And I find my Forms cannot handle them.

    The Action Window Value Dialog Box converts any direct entry to a string. If you use the Functions

    True() and False() return errors when used.
    Boolean cannot be used
    Eval cannot be used.

    I am at a loss after of weeks of working around it.  Yahoo, Problem solved.  You physically type in   True   or False,   as a string.

    Doooh.

    Does the value change to 0 or 1 when you change the field type to numeric?????

  • 01-27-2009 09:08 PM In reply to

    Re: How do you set a True / False on the Add a Rule Action dialog box

    Hi,

    If the field type is Boolean type then we will set the values to true or false. But the Rule action will not change automatically to 0 or 1 when you change the type to numeric. And it will show a validation around the control as only integers allowed after firing the rule.

    Swathip
    www.ggktech.com
  • 01-28-2009 03:25 AM In reply to

    • Ian Dawson
    • Top 50 Contributor
      Male
    • Joined on 01-01-2009
    • Shellharbour NSW Australia
    • Posts 154

    Re: How do you set a True / False on the Add a Rule Action dialog box

     

    Thank you swathip.

    I found I think the solution, And that is tio physical enter a text string "True" or "False" for a CHECKBOX.

     Now that is ODD.  Why would these controls consume so much space???? And not have Booloean or other swith (on off).

    So, in effect a Checkbox is at least 5 characters long?

  • 01-28-2009 05:33 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: How do you set a True / False on the Add a Rule Action dialog box

    Hello,

    If you want to save the 0 and 1 value for boolean field then you have to change those setting in field properties.

    Double click on field to get Properties window.

    Change ‘Value when cleared' value from ‘FALSE' to ‘0'

    Change ‘Value when checked' value from ‘TRUE' to ‘0'

    While setting the rule you can set directly ‘0' and ‘1' values rather than ‘false ()' and ‘true ()'.

  • 01-28-2009 05:50 PM In reply to

    • Ian Dawson
    • Top 50 Contributor
      Male
    • Joined on 01-01-2009
    • Shellharbour NSW Australia
    • Posts 154

    Re: How do you set a True / False on the Add a Rule Action dialog box

    Shiva, if I have a CHECKBOX I would have thought that it would be a short lengthed field, something shorter than a string of one character.

    So can you imagine my amazement that to actually alter a checkbox through another fields rules, that I have to enter a STRING  "true" or "false".

    Initially I only used true() and false(), because nothing else was available.

    Now I am commited, I think what I have done is still okay!!??

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