How to change a doctype's list data after submitting a web form

Hi all,

I’m new to Frappe/ERPNext, I would like to ask on how to change a doctype’s list data after submitting a web form. Below, i will explain the detail.

Detail:

  1. There is a “car” doctype with 3 fields which are car_name (Data), is_published (Checkbox) and Route (Data).
  2. There is a “car_appointment” doctype with 2 fields which are car_name (linked to “car_name” in car doctype) and customer_name (Data).
  3. There is a “booking” web form which linked to “car_appointment” doctype.

What I want to do is:

  1. After a user submit a form, the particular car in the “car” doctype’s list will be automatically unpublished. Which means to uncheck the “is_published” field.

I would like to thank you in advance for any help given. Thank you.

You can write server script after insert of your web form doctype.

Do you mean the “booking.py” file?

no, there is an option to write server script from the front end.

1 Like