This is a 2-part answer.
1. Creating a visibility setting for parameters require shared parameters.
I included a description below from this post:
https://forums.autodesk.com/t5/revit-api-forum/hidden-parameter/td-p/2684050
Shared parameters have a "visible" property (defaults to 1 = visible). You could set this to 0 but that requires modifying the shared parameters file manually, which is NOT recommended. (I have not tried changing this value and observing the results myself)
Otherwise, what some people do is put the parameter in the "Other" group in the family (down at the bottom) to help get it more out of sight, and then put a formula on it to "lock" it so it can't be changed in the project editor.
For example:
Name: My Length Parameter
Formula: If(1=1, 17 cm, 0 cm)
Name: My Text Parameter
Formula: "Hello, World"
Name: My YesNo Parameter
Formula: 1=1
or
Formula: 1=0
2. Set your formula to hide the shared parameter if either other option is selected.
Let me know if you need additional help finding the specific formula.
_________________________________________________________
Alternate (and possibly simpler) method would be to create a type parameter.
Then fill in that type property with any of the three options with a formula that reads "If A, then show ____. If B, then show ____. If C, then show _____.
Cheers,
Rich