@SumanthDundi7
You can detect if a user input a blackslash ( \ ) or and double quote ( " ) using this code
IsMatch(TextInput1.Text,".*[\\\"&Char(34)&"].*")
Input of these characters into the text field cannot be prevented but you can alert the user when an error is made. Create an label for each input field to display an error message when the illegal character is input. Name the labels: emsg1, emsg2, emsg3... emsg19
Text: "The symbols \ or "&Char(34)&" are not allowed."
Color: Red
Visible: IsMatch(TextInput1.Text,".*[\\\"&Char(34)&"].*")
Finally, you should prevent the user form submitting the form when any error messages are displaying. Put this code in the DisplayMode property of your submit button
If(
And(
!emsg1.Visible,
!emsg2.Visble,
!emsg3.Visible
...
!emsg19.Visible
),
Edit,
Disabled
)
Note: where you see the three dots ... in my examples you should write out all the labels for 1-19.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."