Skip to Content
Menu
This question has been flagged
1 Reply
2881 Views
Hi there,

I'm using Odoo 13 on Odoo.sh

I'm testing to build some website forms that can interact with the Odoo database and ran into this issue.

As an example, let's say I have two fields:
  • Customer
  • Sales order item
The requirement is:
  1. I want the "sales order item" field to be invisible until the Customer field is filled in. 
  2. Once the customer field is completed, the sales order field should appear and be filtered to sales orders that are linked to the customer (partner) record. 
Does anyone know how to accomplish this?
Avatar
Discard
Best Answer

You cannot achieve this with a form builder. You will have to apply the JS for this.

Just google it or check in the addons, and you will find lots of examples regarding this.

1) https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
2) https://www.geeksforgeeks.org/hide-or-show-elements-in-html-using-display-property/

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
63
1
Nov 24
248
0
Oct 24
248
1
Oct 24
1490
1
Aug 24
325