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

Question

Question

Laserfiche Cloud and JQuery

asked on July 24, 2023

Do Laserfiche Forms in Cloud use JQuery?

I'm evaluating Laserfiche Cloud after using self-hosted Laserfiche for a number of years. I put some java script in a form but I get "ERROR ReferenceError: $ is not defined". I'm trying a simple script that worked in my self-hosted version?

Has anyone migrated solutions with extensive Javascript/JQuery to cloud? Does javascript have to be completely rewritten?

0 0

Answer

SELECTED ANSWER
replied on July 24, 2023

I believe the difference is more about the new layout designer versus the "classic" designer. The new layout designer does not include JQuery, and the JavaScript in general works very differently.

If you're migrating any forms to the Forms Layout Designer from the classic designer, regardless of whether you're doing it in Cloud or self-hosted, you'll need to rewrite the JavaScript.

Some functionality can be recreated using the API they added for JavaScript in the new designer, but some functionality cannot be recreated due to how the new designer is structured.

3 0

Replies

replied on July 24, 2023

Thank you for the helpful answer. I'll look for resources for learning how to use the new layout designer but plan to migrate our more complicated forms using the classic designer.

0 0
replied on July 24, 2023

Here's the link for documentation on the LFForm object.

The LFForm Object (laserfiche.com)

It is quite different because custom JavaScript now runs in a sandbox and can't directly manipulate form elements, but the LFForm object provides an interface for a good amount of common use cases.

1 0
replied on July 24, 2023

Thank you, helpful again!

I haven't worked with these since we're still working on moving forward from version 10. I've spent many hours with java script on LF 10 Forms and done many things, but they seem to have provided a way to do almost everything I've done. So far, I'm impressed.

Thanks again!

1 0
replied on July 24, 2023

@████████ if you run into anything not covered by the Layout Designer that you use in your forms please let us know! We have a bunch of things on the roadmap but are always looking for additional use cases that may or may not be covered in our current plan.

1 0
replied on July 25, 2023

@Zachary St. Louis, in the quick glance I took in the documentation of LFForm, I was quite impressed. The only thing I found that seems to be missing is access to mouseover/mouseout events. I have a form that uses mouseover to display the name corresponding to an accounting code. It's far from being a critical feature, though.

Two things are critical, though. We have a complex self-hosted Laserfiche installation that is deeply embedded in our organization and we're trying to figure out how to migrate to cloud. Unfortunately, we aren't sure we can even get there.

  • Moving to a single repository would put management of security settings in the hands of the same people for all of our current repositories. I know one department in particular for whom this will be a huge sticking point.
  • Having to manually rewrite all our workflows is going to be very laborious, disruptive and costly, and would no doubt introduce new defects that we would be discovering for months after conversion.

If solutions to both of these were in place, I really think our team would most likely decide to migrate.

0 0
replied on July 25, 2023

@████████ Mouse over is an interesting request. You can likely cover your use case with a combination of CSS and HTML within a field label or similar. Otherwise custom HTML within an unsupported field part (label, sub label, etc.) is not supported.

 

I will pass the remaining items off to their respective teams. We are aware of these problems, but it always helps to hear from more customers with similar issues.

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

Sign in to reply to this post.