Show a field depending from a value in a lookup field

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
scorpio_x73
Posts: 11
Joined: 2013-11-28 21:00

Show a field depending from a value in a lookup field

Post by scorpio_x73 » 2013-12-02 08:56

Hi and thanks in advance for any info.

I have a lookup field named com and it has 3 values value1, value2, value3.

What i want to do is when the user selects value1 i want to make viible the field1aa and let him update it but if the user selects value2 i want to saw him the field field2aa and not the field1aa.

Is this possible ?

A little example if its possible please (noob here trying hard...)

Thank you again

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Show a field depending from a value in a lookup field

Post by a.gneady » 2013-12-03 00:19

can be done using javascript (you can create a file in the generated "hooks" folder named "tablename-dv.js" (where tablename is the name of the concerned table) and add the javascript code to it .. it would be executed when the detail view is displayed ... I'll try to post an example code for your request within a few days.
:idea: AppGini plugins to add more power to your apps:

TheCodeRed
Posts: 26
Joined: 2014-05-01 12:57

Re: Show a field depending from a value in a lookup field

Post by TheCodeRed » 2014-05-01 13:11

Any update on this type of setup? This is also something I would find useful. As of now the auto-fill lookup fields work well enough, but I would like to also like to provide the user with some secondary choices based on the selections from an above field.

Post Reply