Splice under Data Formats > Manipulation

Can we have splice method under Data Formats > Manipulation.

I’m doing some calculation that needs split and splice functions on client side for example on input 1 value = 4.33 I want to set value of input 2 = 4 and input 3 = 33. I previously did that with js but since I’m doing it with dmx-on:updated attribute this time I want to achieve it fully with Wappler without additional js.

Thanks for consideration.

Any achievable workaround that already exists is much welcomed.

Not sure about splice, but there is already a SPLIT function on client side. Something like:

input2.setValue(input1.value.split('.')[0])
input3.setValue(input1.value.split('.')[1])
1 Like

Splice also has different usage but for this particular purpose using split as you proposed does the trick. Just have to add the [0] manually. I didn’t know that’d work before. Thank you! :+1: