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

Question

Question

Writing script language in the new forms designer

asked on May 21, 2021

I am trying to insert script tags into a custom HTML block so that I can write script in the new forms designer since there is no javascript window to use. IE:

<script>
</script>

However when I do this, the javascript runs once in the designer and my HTML element is deleted automatically, never allowing me to run it on the final form.

0 0

Replies

replied on May 24, 2021 Show version history

When I saw that the new forms didn't support JS, I tried adding it through Custom HTML as well.

 

The JS would run when I clicked on the Custom HTML in the designer, but it would not run when I previewed the page or viewed the page within a forms process. There is an error message reported in the console as well. See the below screenshots:

 

I even tried adding the onClick as an event handler, but with the same results (excluding the console error message).

I'm not sure if there is a roadmap for adding JS to the new forms or if the removal of JS was a design choice by Laserfiche.

0 0
replied on May 24, 2021

Well I guess I am out of options to do any mathematics. Calculations is not working in the new designer and support recommended switching to the classic designer. I was trying to use javascript as a workaround.

0 0
replied on May 24, 2021

What problems with calculations are you having?

 

I've only noticed problems with calculations on the Cloud version of the new forms designer (calculations trigger an error on read-only fields).

1 0
replied on May 24, 2021

Yes exactly that issue. I would like to show the grand total of all items in a table, but it is not realistic to have an editable grand total. Javascript is the way to go.

 

There are numerous advantages to scripting, including being able to break out your math line by line for clarity on what is going on.

2 0
replied on May 24, 2021

We are looking into the support case about calculations into a read-only field using the new layout designer. JavaScript is not yet supported in the new designer but we are starting work on that functionality soon. 

2 0
replied on June 15, 2021

Just to add in here,   The "mask" function (SSN,  Phone, Etc) doesn't seem to function in the new designer without some js,  so can't use the new designer if we want to use a mask to format input.   Admin Guide for setting up forms in cloud doesn't mention needing Javascript to put a mask on a field.    LF needs to update the Administration guide.

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

Sign in to reply to this post.