In paragraph text , I want email validationtest1@gmail.comtest2@gmail.comtest3@gmail.comtest@test,com---(error)I would like to have email validation in such a way that it should accept only email like test@gmail.com ,only gmail.com mails it should validate and if it doesn't have gmail.com at the end then throw error at the line( @test.com in our case )
Discussion posts and replies are publicly visible
You can split the paragraph field's value into its individual lines (use char(10) as the separator) and then you will have an array that you can loop over and conduct your email validation logic over. You won't be able to highlight any erroneous values but you could call out the line number and the value in your validation error message.
I'm with Mathieu Drouin though - you'd be better off with a grid of separate email values. I'd challenge the "requirement" as it sounds more like a solution.