Condition Based fetch

I have a model named Program. It has a select field in it that has options such as, Bachelors, Intermediate, School. Now what I want to know is how can i get details of Intermediate when it is selected in the form.

Hello,

You can use frappe.call for that one. Check this code.

For more info, check out this site. Frappe Ajax Call

Regards,

Ivan

1 Like

Thank you so much. I’m fairly new to coding so can you please tell me where will I put this code in? And if i want to calculate finances for scholarship students how can I do that? Thanks again :slight_smile:

Hello,

It should be under your doctype’s JavaScript probably on program.js and then attach it to the Select field by fieldname that you have set.

Check this for more info:
https://frappeframework.com/docs/user/en/api/form#standard-form-scripts

Regards,

Ivan