field mask depending on radio button

hi,
I want to use a different mask for a field depending on what value my user selected on radio button from the field above… eg:

field #1

ID Type : ()Social Security Number () Passport () Police/Army

if {ID} = radio button 1
then
field #2’s mask should be like 9999999999-999-999 or something
elseif

{ID} = radio button 2 then field #2 mask should be § *9999999999

or something like that…hope you guys understand what I meant.

1 more thing, can we align the radio button as horizontal instead of vertical?

its like () value1 () value2 () value3

instead of

() value1
() value2
() value3

thanks!

hi, I had the same problem and solved it as follows: In my case there were three different masks depending on the value of a combobox …
So … create three additional fields (one for each mask to use) then put on hidden original field (the field of database). Depending on the case I show the field with the corresponding mask … on The onBlur event of each field-mascara I transfer the value entered into the field of database …

That’s it. I hope that is helpful