#Reactive form with custom validations

1 messages · Page 1 of 1 (latest)

waxen coral
#

Can you point to what's not working?

snow island
#
  1. [ Getting Cannot read property 'indexOf' of null ] inside my custom space validator service
  2. it is also not redirecting to another page when trying to access the data showing JSON is not defined as something
waxen coral
#

I guess the value is null.

snow island
#

if we have some space at the end then we can handle it from this?

waxen coral
#

No idea what you mean.

#

value is null.

#

And you do not account for that.

#

So the error is expected.

snow island
#

for second issue ?

waxen coral
#

No the first.

snow island
#

One more issue is also there or am i missing something here as well

waxen coral
#

I assume it's because of the if condition.

snow island
#

okay
are you able to test it on your local ?

waxen coral
#

No.

snow island
#

can you check please

waxen coral
#

No, I dont have time to pull everyones project one by one.

#

I am pretty sure that error is because of the if condition.

snow island
#

have you seen the issue for 2nd point as well ?

snow island
waxen coral