Hide field using depends on in_list

Hey guys.

So I have a depends on code to show specific fields depend on an in_list - that works great !

However, now I want to add extra code to hide specific fields if one specific option is selected from the list.

Has anyone done this before and is willing to share the code ?

share your code does not work so far,then others can help.

share your code does not work so far,then others can help.

I haven’t made any code because I don’t know how it should be … that’s the idea :slight_smile:

@Iulian_Olaru check this.

frm.toggle_display("field", condition);

I don’t think that’s going to work.

The field should NOT display if a specific selection from another select field is active.

eval:doc.field !== 'Value'

This will hide the field if the value of the select field is Value

@netchampfaris you nailed it!

Thank you very much :slight_smile: