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

Question

Question

Custom Tab for Forms Not Passing Variables (Web Client and New Forms Designer)

asked on April 29, 2022

Hi - I'm on Laserfiche Forms Professional Version 11.0.2108.10347 and Laserfiche Web Client 11. I created a form with the new Form Designer and when I setup the form as a custom tab in the Web Client, it won't pass over the variables I have placed in the URL. Sample below. I then setup the same form using the Classic Form Designer and used all the same variables, assigned this form to the process steps, and it works perfectly. (I did not change the URL for the custom tab). Does anyone know if this this a limitation of the new Form Designer? Or is there different code that has to be passed in the URL?

https://xxx.xxx.xxx/Forms/xxx?_EntryID={id}&_AcctNo=[AcctNo]&_Suffix=[Suffix]&_MemberName=[Full Name]

 

0 0

Replies

replied on May 5, 2022

Hi Jessica,

This is a known bug (354998) of new form in Forms 11 Update 1 (11.0.2108.10347). Is there chance that you could upgrade to latest Forms 11 Update 2 (11.0.2201.20436) which has the fix?

0 0
replied on May 10, 2022

Hi Ziyan,

We did the upgrade over the weekend, and it does work now with the new forms designer for the most part, but I'm having two issues.

1. FormsLinkURL issue I added the below text to the end of my forms link for my custom tab, and everything auto fills except the "_DatePOAReceived" field. If I manually type in values for the variables with my link into the web browser, it works, but if I try to use the variables as shown below, it does not work. I'm not sure what is wrong.

?_POAEntryID={id}&_DatePOAReceived=[Orig Date]&_MemberName=[Full Name]&_AcctNo=[AcctNo]

2. Read only issue If a field is set to read only on the form, it won't pass the variables over to the fields. Is this a known bug?

Thanks.

0 0
replied on May 11, 2022

Hi Jessica,

Glad to know it works for the most part.

 

For mentioned read-only issue, this is expected behavior to not populate read-only fields with values in URL. The reason is that value of read-only fields are determined by backend for data security, so the value filled in frontend will not be passed to backend at all. 

As alternative, you can populate the read-only field with default value/formula/lookup rule, which will be regarded by backend.

 

For the first issue, I'm still unsure about the situation. Where does the variable [Orig Date] come from? What is the format of this variable?

0 0
replied on May 12, 2022

Hi Ziyan, I figured out that the date issue was because I was using MM/DD/YYYY format for the field and it only seems to work as a YYYY-MM-DD format for some reason. (I'm assuming it has something to do with the metadata field setup, even though our data shows as MM/DD/YYYY when viewing the file metadata).

I don't think I can do a backend lookup on the data I need to populate in the read only fields, so I just didn't mark them read only. This isn't our preferred method though. I need entry ID to populate and I was trying to make that read only, and really, I wanted Creation Date for the other read only field, but since that field won't pass in the URL, I used our metadata field [ORIG DATE], which will be set to the creation date for the specific files in question.

Thanks.

0 0
replied on May 13, 2022

Hi Jessica,

One workaround for both issues is to add hidden helper editable field, then use it as formula of target field:

For example, for the first issue, add a helper editable field with date format YYYY-MM-DD (if it is the only date format when passed from Web Client), and populate it with URL. Then use it as formula of the target date field which has preferred format MM/DD/YYYY. 

To hide the helper field, simply setup field rule to always hide it. 

0 0
replied on May 13, 2022

Unfortunately, that doesn't work. If you hide the field that is supposed to be filled with the URL data "helper field", it doesn't autofill and therefore doesn't show the value in the new field. 

0 0
replied on May 15, 2022 Show version history

URL can pass value to hidden field in my test environment.

So have you checked the URL and formula actually works when the helper field shows, but not when hidden by field rule?

0 0
replied on May 16, 2022

That worked. I was trying to use default value with the variable from the hidden field instead of a calculation. The calculation works now. Thanks!

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

Sign in to reply to this post.