WIX editor gone crazy

@rolandthomas
Perhaps you also should add some screenshots of your errors.


Input5 is set to a number and maxCap is 40


1 - dates[“durBlocks”] is initialised as 0
2 - there are no numbers in the expression
3 - there are no numbers in the expression


There are no numbers in the expression.

Ohh, i also have a similar one…


As i can remember, it was working well.

The value of a Text Input element (note that I highlighted Text) is always a String . Setting the Type to Number just causes the field validation to ensure that only numbers are entered in the field. To use the value of an input element as a Number, you will need to first convert the value to a Number, like this:

let valueNumber = Number($w('#input1').value);

See the TexInput.value API for details:

Thanks, I can work with this between numbers and strings. Dates may be a little trickier but I’ll figure it out.
I forgot to post the dataset snipet so I have added below (sorry if the quality is poor). dataset.new always added a new row to a dataset but it no longer exists. I know there is a preference to use the API but that is a lot of changes for me.

@rolandthomas Strange - dataset.new() should be OK. Please post your URL and explain where and how I can see the problem.

I fixed the site failure with your earlier response (thanks again). This dataset issue hasn’t caused a failure that I can see but I’m still testing as I am not sure how it will behave when it shows an error in the editor but not on the site.

It most likely will work. It’s just a code parsing/display issue. However, it shouldn’t be flagged as an error.

@yisrael-wix Thanks again for the help. I’ll monitor how it behaves.