Search code examples
lotus-noteslotus-dominolotusscript

Only display one radio button value for two value radio button


I have a Status radio button consists of Active and Inactive. For now, when a radio button is displayed, it will show both Active and Inactive as below.

gambo

My question is, how can I want to display only one status only. How can I set if radio button true, then it displays only one either Active/Inactive only? Thanks for any help!

Update

I have success show only one status, but when on edit mode, it not showing radio button.


Solution

  • I'm assuming that the field name for your radio button is 'Status'.

    I'm assuming that when you say "if radio button true", you really mean "if one of the two values for the radio button is selected". I.e., you mean it's not blank.

    You need a computed-for-display text field. I'll call it ShowStatusValue. You can call it whatever you want. Put it immediately below your radio button. Set the field value formula to

    Status
    

    Click on your radio button and bring up the field properties box and click on the hide-When tab. Put a check in the 'Hide paragraph when formula is true' box and set the formula to

    ! Status = ""
    

    Now click on the ShowStatusValue field, bring up the field properties, go to the hide-when tab, click on the 'Hide paragraph when formula is true' box, and set the formula to

    Status = ""