Use Formula's for Choices Problem

I am trying to use the following formula to determine the choices in a dialog list:

@if(variable = “parameter”; “choice 1”; “choice 2”

For some reason I can’t get this to work, “choice 2” always shows. To test that the variable is correct/works, I used the same variable/parameter in the “hide paragraph” formula and it worked.

Any ideas? I know this is basic stuff but I am stumped…

Thanks, Paul

Subject: Probably something with your formula then

Hi, Paul. I would think it is something wrong with your formula then. Is the variable field multi value? I would put your choice formula as the formula for a computed value field on the same form and see if it works when changing the variable field to parameter. If not, then you have a formula issue.

Subject: Are you refreshing choices on document refresh?

Hi, Paul. Is it an issue of you not selecting the option to Refresh choices on document refresh? If you are basing your choices on a formula for a field that is selected after the document is created, then you will need to select this option for your Dialog list field and ensure you are refreshing the document after the “parameter” field selection.

Subject: Not the refresh

Hi Dave,

Thanks for the suggestion but I tried this… even put a refresh in the “on change” parameter. I also try to refresh the form manually when testing. Nothing works… :frowning:

Take care, Paul