API Form radio button enabling

API Form radio button enabling

D.Wheeler3GADA
Advocate Advocate
747 Views
3 Replies
Message 1 of 4

API Form radio button enabling

D.Wheeler3GADA
Advocate
Advocate

Is there a way to utilize radio buttons in a form so that a certain radio button group is not enabled until a different radio button on the form is selected? I am not finding a lot of reference material on coding radio buttons. Thanks!

0 Likes
748 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Hi @D.Wheeler3GADA.  I am assuming that you are talking about an iLogic Form here, and not a VBA UserForm or a vb.net Windows Form...am I right?  If so, then about the only way to control whether the radio group is available is by using a Boolean type user parameter.  Then select that line item in your Form Editor that has the radio button control, and down in the Properties area, under Behavior, use the 'Enabling Parameter Name' property and set that Boolean parameter as its value.  Then when that boolean parameter's value is True, that control will be available, and when it is False, that control will be greyed out).

WCrihfield_0-1653067236338.png

 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 4

D.Wheeler3GADA
Advocate
Advocate

WCrihfield,

       I am actually building a VB Form. Once I got the syntax correct I was able to achieve the group of buttons being enabled by the selection of a different button. 😁

 

However, I now am hoping to code a button that will reset the form (so the radio buttons are disabled again). I am trying to find information on that, but I am not finding what I need...

 

Thank you for the post! (I will need that info when I begin working on iLogic forms)

0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor

Oh. OK.  I have not done a lot with Visual Studio, due to lack of administrative rights on my work PC (corporate restrictions), but I have dabbled with creating my own Window Forms from scratch (the hard way) within iLogic rules (iLogic uses vb.net as its basis) before.  Here are a couple of links to 2 of my contribution posts which feature Windows Forms built into iLogic rules, that you might find helpful (Link1, Link2).  I'm, afraid they aren't terribly explanatory though, because personal contribution articles are pretty limited in character count and do not seem to support almost any types of attachments.  You can usually find fairly good info about such things on Microsoft's 'dot net' website (Link3), and on places like StackOverflow online.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)