Hiding elements dynamically

I know this is possible, I just don’t know how.I have a radio button field, and I want other paragraphs to be hidden based on what is selected in this radio field.

I tought this would do it :

Hide paragraph when formula is true : Category!=“10”

and it works when I save the document and open it again, but I want it to do this immediately. I have seen it in a database before, I just don’t know how you tell notes to check this everytime you change the radio buttons…

please help.

Sven Magnus

Subject: Hiding elements dynamically

Hi Sven, I managed this by refreshing the document after changing the
radio-field.

Place on top of the form:
!–Refresh button–>]

were the Refresh button contains the formula: @Command([ViewRefreshFields])

This refreshes the document after changing a radio-field.
Now you can use HideWhen because the radio field holds the changed value.
for example:
Hide paragraph if formula is true
@If(NameOfRadioField=“1” | NameOfRadioField=“”;1;0)

This should work.

Subject: completely unrelated

You’re not from Sandefjord, Norway?

Hans

Subject: Hiding elements dynamically

Hi there,

Have a look at the second property tab for the radio button field. There is an option ‘Refresh fields on keyword change’. By ticking this, the document will be refreshed every time the radio buttons are changed.

Hope this helps,

Katherine

Subject: RE: Hiding elements dynamically

ok, thanks a lot, that was exactly what I was looking for!however, the only thing that’s still bothering me is upon creating a new document, it hides the parts I want to dynamically hide, regardles of the default value of my radio button. so I’m guessing that at the stage where it checks the “paragraph hide”, the default values have not been set yet. can I refresh this without clicking the radio button?

Subject: RE: Hiding elements dynamically

You could try including @IsNewDoc in the hide-when formula?

Subject: RE: Hiding elements dynamically

woops, I kind of replied this to the wrong message or something… the solution you gave is perfect. Thanks!

original post : [I don’t think this is an option, because it has to work on documents that haven’t been saved. I decided not to give the radiobutton a default value, and make it required so they have to select a value and everything will get hidden correctly like this.

thanks or your help!]