Trying to get the current list on crm portal

Hi there,

I need help figuring out if I can add navigation buttons on the form view of the Frappe CRM portal, which can help me go to the next lead in my cur_list or the previous one in my cur_list.

so right next to the call buttons the buttons should be shown like “<” &“>” just like it does in the frappe desk(like in the second screenshot)

The buttons are right next to the print button.

So the issue I am facing is that I was creating a CRM form script but I can’t find any way to get the current list. I was planning to route to the next in the list.

Can I get the cur_list in CRM script or if you have any other suggestions please let me know.

Thanks,

raise the feature request in frappe crm github