You are viewing limited content. For full access, please sign in.

Question

Question

Is there a way to call a function when a pagination tab gets focus?

asked on October 27, 2023 Show version history

In version 11, is there a way to call a function when a pagination tab gets focus? So either when the tab it clicked or the buttons [Next] and [Prev] are clicked. 

EDIT: this is in the modern designer, not classic. 

I made a feature request based on this post: https://answers.laserfiche.com/questions/213018/Feature-Request-for-modern-designer-when-pagination-page-gets-focus-trigger-event

 

0 0

Replies

replied on October 27, 2023

Are you using the classic form designer or the forms layout designer?

1 0
replied on October 27, 2023

The new designer. I know how to do it in classic, but having issues with the new way. 

0 0
replied on October 27, 2023 Show version history

I don't think this is currently possible.

The LFForm object has options for setting/changing the pagination button labels, but I don't see any event handlers related to page changes or the tabs.

The javascript on these forms is sandboxed so it can't interact directly with any form/page elements, only what is provided via the LFForm object.

2 0
replied on October 27, 2023

I was thinking that was going to be the case. It means I will just need to put up with the code running way more than it needs to instead of at the one point it is actually needed to run. Or add a button and make it so the user must click that button to be able to submit.... I don't think the button method will be the best way. 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.