Apostrophe breaking Controller call from Button

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
AkshayKhanolkar
Posts: 44
Joined: May 2nd, 2022, 11:53 am
Contact:

Apostrophe breaking Controller call from Button

Unread post by AkshayKhanolkar »

I had a registration page on a 5.1 MVC Client I was working on.
image.png
I am sending [FirstName], [LastName], and [UserId] all of which have apostrophes. The button is not clickable. Comparing the HTML with a regular request we see the following difference:
Regular Request:
<button type="button" value="Approve" validationgroup="" disableonclick="No" iseof="False" isdefault="false" isenabled="True" title="" visible="True" class="Button-Default-ButtonStyle btn btn-primary" controltype="button" onclick="UserRegistrationApproval_Approve_click(event, event.target, 0, {'RegId':'REG-10000155','FirstName':'Akshay'});" causesvalidation="Yes" style="width: 150px; pointer-events: auto; opacity: unset;">Approve</button>
Request with Apostrophe:
<button type="button" value="Approve" validationgroup="" disableonclick="No" iseof="False" isdefault="false" isenabled="True" title="" visible="True" class="Button-Default-ButtonStyle btn btn-primary" controltype="button" onclick="UserRegistrationApproval_Approve_click(event, event.target, 0, {'RegId':'REG-10000159','FirstName':'A'k'});" causesvalidation="Yes" style="width: 150px; pointer-events: auto; opacity: unset;">Approve</button>
word count: 152
JustinVanRegenmorter
Posts: 576
Joined: August 26th, 2021, 9:56 am
Contact:

Re: Apostrophe breaking Controller call from Button

Unread post by JustinVanRegenmorter »

This issue has been recorded in task 11950. This post will get updated when it is completed.
word count: 17
Post Reply