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

Question

Question

Forms css class not applied to newly added table row

asked on July 23, 2019

We are running into an issue where we have applied both regular expressions and also field masking to a social security number field in a table, as described in the forms user guide here: https://www.laserfiche.com/support/webhelp/laserficheforms/9.1/en-us/forms/#FieldMasks.htm%3FTocPath%3DCreating%2520a%2520Form%7CUsing%2520the%2520Edit%2520Page%2520to%2520Add%2520Fields%2520to%2520a%2520Form%7CSingle%2520Line%2520Fields%7CRegular%2520Expressions%2520Overview%7C_____1

While this works great for the first row in the table, it does not apply to any rows of the table added by the user.  It looks like the css classes applied to the field are not carrying over to the new row.  Is there a workaround for this?

 

Thanks!

0 0

Answer

SELECTED ANSWER
replied on July 23, 2019

It's unlikely that the CSS classes are not being applied (you can confirm that by inspecting the page with the browser dev tools and looking at what classes are listed for the field's parent container).

Based on what you're describing, it sounds more like your JavaScript is not working on new rows, and that would be because the row didn't exist when the event handlers were assigned.

See this post for more information about JavaScript and Tables/Collections.

0 0
replied on July 24, 2019

Great, those javascript updates worked.  Thank you!

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.