iLogic and Form question

iLogic and Form question

tschaeferZNBXX
Advisor Advisor
1,906 Views
10 Replies
Message 1 of 11

iLogic and Form question

tschaeferZNBXX
Advisor
Advisor

We have a form that has some drop down and user filled in fields.  I would like to know if anyone can tell me how to "Grey out" some of the fields if certain selections are made?

 

Ideally if one selection is made from a drop down the other fields are not able to be edited.

Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
Accepted solutions (3)
1,907 Views
10 Replies
Replies (10)
Message 2 of 11

NSBowser
Advocate
Advocate
Accepted solution

You can 'disable' a Form Entry field by connecting it to a (Boolean) 'Enabling Parameter' and then, using iLogic, setting the boolean to False when the logical condition arises, and True when the opposite condition arises.

 

Here is where you can link to the boolean. 

 

Form Enabling Parameter.jpg


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.
0 Likes
Message 3 of 11

tschaeferZNBXX
Advisor
Advisor
That works but it is working opposite of what I want. If the selection is True I want the sections greyed out and able to be edited when False is selected.
Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
0 Likes
Message 4 of 11

NSBowser
Advocate
Advocate

You'll have to reverse your logic and set the boolean false to suppress, regardless of what your 'state' is. This might require you to create a new Boolean to handle the inversion.


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.
0 Likes
Message 5 of 11

tschaeferZNBXX
Advisor
Advisor
I cannot create or reverse the logic.

Do I need to write an entirely new iLogic rule?
Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
0 Likes
Message 6 of 11

smilinger
Advisor
Advisor

1. You need to create two boolean parameter, for example, like this:

 

2016-05-18_0-34-58.png

 

2. Add this statement in your rule:

 

Enable_it = Not Disable_it

3. Use Enable_it to control your drop down list, and put Disable_it on the form.

 

2016-05-18_0-33-16.png

 

2016-05-18_0-32-27.png

Message 7 of 11

tschaeferZNBXX
Advisor
Advisor
Maybe I am totally miss understanding but this does not work.
Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
0 Likes
Message 8 of 11

smilinger
Advisor
Advisor
Accepted solution

You also need to set the "Predefined Buttons" setting of your iLogic form to "Done", which means the selection you make on the form will be effective immediately.

 

2016-05-18_14-01-24.png

Message 9 of 11

Jef_E
Collaborator
Collaborator

I think it's quite safe to say that iLogic forms arent ideal to have user interaction. It would be better ( in my humble opinion ) to use a AddIn for windows that react to whatever the user does. It's alot easier to do things there, and you can control almost every event you like to.



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
Message 10 of 11

Anonymous
Not applicable
Accepted solution

 

That works beautifully, thank you!

 

I was looking for a solution to be able to enable/disable form options.

 

Image, Enable-Disable Form Options.PNG

 

Here's the peice of iLogic I used based on your explaination:

 

' If Double Door is selected then disable the Door Hinge Left/Right Option
If Door_Type = "Double Door" Then
Disable = True
Else
Disable = False
End If

Enable = Not Disable

 

Message 11 of 11

tschaeferZNBXX
Advisor
Advisor

Thank you everyone for your help!

 

I was able to get this to work finally this morning!

Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
0 Likes