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

Question

Question

$.now() didn't save

asked on January 11, 2018

Hi all,

 

In my form, I added this Jquery :

$("#q23 input").val($.now());

 

In my form, I got this:

 

But in Laserfiche, the value disapeared.

 

I don't understand why?

0 0

Answer

SELECTED ANSWER
replied on January 11, 2018

Hi Olivier,

From your screenshot, it looks like #q23 is a read-only field.

You cannot modify read-only field value by javascript; as a workaround, you can change the field to be not read-only and set field read-only by javascript, like this: https://answers.laserfiche.com/questions/101012/Forms--Populating-a-readonly-field-with-javascript

2 0
replied on January 12, 2018

Hi Rui Deng,

 

Thank you, it's working !

0 0

Replies

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

Sign in to reply to this post.