11
Views
1
Comments
[Custom Input Masks] Error: Cannot read properties of undefined (reading 'value')
custom-masks
Web icon
Forge asset by Sara Gonçalves
Application Type
Traditional Web

I use this mask on input that place inside editing table
When I click add to add new item on table (I use TableRecord)
it will show the form and always show this error and the mask is not working
How to fix this?

2025-08-07 06-30-56
Amit J
Champion

Hi

This happens because of how OutSystems renders new rows:

The input only exists in the DOM after you click Add.

If your mask JavaScript runs earlier (on page load or screen ready), it never gets applied to the dynamically created input.

You need to reapply the mask after OutSystems renders the new row.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.