Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there a way to "request" a validation event?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
quality5B59E
214 Views, 1 Reply

Is there a way to "request" a validation event?

I'm trying to control the state of the OK button in a dialog but with a twist.

The dialog represents an item being added to a list and it has a dropdown

to select "item type".  When the user selects different types, other controls

are made visible/invisible in the dialog.  The invisible controls don't matter

for a particular item type so I want to ignore them with regards to validation.

 

The problem I'm having is that while every time the user changes the dropdown

a *change* event DOES fire,  a *validate* event does not seem to do so?

So I can't control the state of the OK button in response to changing the dropdown?

 

I could make it work if I "requested" a validation from the change event but I

don't know how to do that (if it's possible).

 

Am I missing something here?  This is my first add-in after all ... 🙂

 

Thanks!

1 REPLY 1
Message 2 of 2
quality5B59E
in reply to: quality5B59E

OK ... I found a solution myself.   If you don't want a control to be checked by fusion so the OK button enable/disable state does not depend on it, simply disable the control.

 

cmdInputs.itemById(CTRL_ID).isEnabled = False

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report