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

Question

Question

Require Comments Box

asked two days ago

Hey all,

I did some research here on Answers and am finding some answers, but they don't seem to be working for me. What I am trying to do is simply require the Comments box (action history) and also have it look and act like a normal field. What I mean by that is have it turn red and say 'Value is required.' if there isn't a value and a user is trying to submit the form. The only thing I got working for me was a JS alert dialog box.

Any help would be appreciated so I can make this look and feel more natural.

Thank you in advance.

0 0

Replies

replied one day ago

Have you tried this script from this post: making comments box required in Forms with javascript - Laserfiche Answers

Is there any reason you can't use a multi-line field and make it required?

0 0
replied one day ago

Hey Angela,

I did try that one and neither the asterisk, nor the requirement of it seems to work for me. I'll need the values entered in the comments to be in the Action History.

1 0
replied one day ago

I tried the custom script in the above post and it worked for me:

Can you double check if you have added $(document).ready() wrapping the script block?

1 0
replied one day ago

Thanks Angela and Rui, I think I got it now. I was trying Raul's code and it wasn't working, I backtracked and tried Ming's and it works as expected.

Thanks for your time.

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

Sign in to reply to this post.