ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Fill link Field options without clicking it


#1

hi
i have a link field (“item group”) in POS … i want the options() for (“u l”) to be filled with out clicking it manually …
i found that link basically render using awesomplete js lib … but didn’t know how to do the trigger


#2

@faztp12 sorry fro tagging you , i saw the only one talking about it in the forum but the thread is closed


#3

Jquery is your answer
In POS you use
2 action
First change the value of the doc
frm.set_value(“item_group”,value)
Secend the page value
$("input tittle[“item_group”]).value(value).click()
Sorrey its writen from phone


#4

hi @ahmadRagheb
Sorry I hadnt seen your tag until today

cur_pos.items.item_group_field.$input.trigger("input")

If you do the above, it will fetch from the server and open the awesomplete :stuck_out_tongue:
Im not sure if thats fine

Hope it helps


#5

Perfect Solution for my case thank you @faztp12