Default Value in "Next Contact By" and "Next Contact Date" in opportunity

How to set Default Value in Opportunity as under.

Next Contact By = doc.user (we tried putting {{doc.owner}}. It did not work
Next Contact Date = Today’s Date

Please advise.

Try to set default values from Customize Form.
Go to Customize Form and select Opportunity doctype.

Priya Shitole
New Indictrans Technologies Pvt Ltd

1 Like

Thank you very much Priya. It worked.

Appreciate your support.

Thanking you,

With Regards,
Deven Shah
Safeworld Systems Pvt Ltd
M - 09825060116

@priya_s are you aware of a way to set default value to, for example, one week from today?

@alec_ruizramon1 , I think this is not possible via doctype, but by using custom script you have to calculate date after 7 days from current date and set it to date field.
Try with this code -
frappe.datetime.add_days(new Date(), 7)

Regards,
Priya Shitole