Community mailing list archives

Re: Javacsript code on form open

Andre Kurniawan
- 05/04/2016 04:35:44

Hello Nhomar,

Thank you for your reply.

Here what I get from that tutorial (please correct me if I’m wrong):

  1. Create a custom FormWidget and put it on my form
  2. Put my javascript code on start
  3. Set value on field using this.field_manager.set_values({"field1": ...});

On 05/04/2016 03:02 PM, Nhomar Hernandez wrote:

On Wed, May 4, 2016 at 2:46 AM, vak0160 <> wrote:

Hello Community,

  1. How to run a javascript code when a form is opened on edit mode?
  2. How to fill some hidden fields using javascript (from the javascript code above)?

Did you check this?:

Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942

Post to: