I dont want to allow someone who writes something in the textbox (of a form) to line break with enter. Ive connected the form with a dynamic page so I dont want to mess the whole page up with forms that include millions of Line breaks.
1 Like
You can accomplish this (and any other validation) with the onCustomValidation event handler.
https://www.wix.com/velo/reference/$w/textinput/oncustomvalidation
maybe you can remove line break before saving textData on collection.
let lineBreakDeletedText = textBoxData . replace ( /\r?\n/ g , ‘’ ); // line break deleted.