Apply Link Field filters in webform

In my case, the ‘Trainer’ field is linked with the ‘User’ doctype, and I need to filter with two users. If anyone knows about this, I would greatly appreciate your help.

@NCP I need your help regarding this, as many forums have not clarified this doubt.

You need to review the Web Forms script. I know it’s not an enough document.

1 Like

@NCP I reviewed whole document and tried all the customization methods it’s not working for link filed. is there any other approachable method?

Try this

frappe.web_form.fields_dict.{link_field_name}.set_data(["Option1","Option2"])

4 Likes

It’s working Thank You @vaibhavsolanke Sir.

1 Like