locked
Expression for Boolean "Rejected" RRS feed

  • Question

  • I'm working on a data control on an Infopath form with a boolean option indicating yes or no in the view field.  I would like to change the option from yes to rejected and leave no as it is. 

    I've tried an expression and this didn't work.  Does anyone know of a way to do this?

     

    Thanks!

    Thursday, August 18, 2011 2:28 AM

Answers

  • Hello Emir,

    I got this.  I used:

     

    Condition:  translate(.,"true","AR Rejected")

    Action: set a field's value

     

    Field:

    .

    Value:

    AR Rejected

     

    Thanks!

     

    • Marked as answer by FiddlerOrb Friday, August 19, 2011 7:12 PM
    Friday, August 19, 2011 7:12 PM

All replies

  • Hi FiddlerOrb,

    Could you please tell us what data control are you using? How about use the Option Button control?

    Option button control is allowed to modify its display text directly but would not affect its retuned value. So you can still return YES/NO as value and show Rejected/No as its display text.

    Let me know if I misunderstand you.

    Thanks & Regards,
    Emir Liu
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact
     
    tnmff@microsoft.com.

    Friday, August 19, 2011 6:21 AM
  • Hello Emir,

    I got this.  I used:

     

    Condition:  translate(.,"true","AR Rejected")

    Action: set a field's value

     

    Field:

    .

    Value:

    AR Rejected

     

    Thanks!

     

    • Marked as answer by FiddlerOrb Friday, August 19, 2011 7:12 PM
    Friday, August 19, 2011 7:12 PM