Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix input field value retention issue in self-registration form #7303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wise-knives-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Fix input field value retention issue in self-registration form
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@
<label class="control-label"><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "First.name")%>*</label>
<input id="firstNameUserInput" type="text" name="http://wso2.org/claims/givenname" class="form-control"
<% if (firstNamePII.getRequired() || !piisConfigured) {%> required <%}%>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(firstNameValue)) { %>
value="<%= Encode.forHtmlAttribute(firstNameValue)%>" disabled <% } %>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(firstNameValue)) { %> disabled <% } %>
<% if (StringUtils.isNotEmpty(firstNameValue)) { %>
pavinduLakshan marked this conversation as resolved.
Show resolved Hide resolved
value="<%= Encode.forHtmlAttribute(firstNameValue)%>"<% } %>
placeholder="<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "First.name")%>*"/>
<div class="mt-1" id="firstname-error-msg" hidden="hidden">
<i class="red exclamation circle fitted icon"></i>
Expand All @@ -423,8 +424,9 @@
<label class="control-label"><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Last.name")%>*</label>
<input id="lastNameUserInput" type="text" name="http://wso2.org/claims/lastname" class="form-control"
<% if (lastNamePII.getRequired() || !piisConfigured) {%> required <%}%>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(lastNameValue)) { %>
value="<%= Encode.forHtmlAttribute(lastNameValue)%>" disabled <% } %>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(lastNameValue)) { %> disabled <% } %>
<% if (StringUtils.isNotEmpty(lastNameValue)) { %>
value="<%= Encode.forHtmlAttribute(lastNameValue)%>"<% } %>
placeholder="<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Last.name")%>*"
/>
<div class="mt-1" id="lastname-error-msg" hidden="hidden">
Expand Down Expand Up @@ -630,8 +632,9 @@
<% if (claim.getRequired()) { %>
required
<% }%>
<% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%>
value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> disabled <%}%>
<% if (StringUtils.isNotEmpty(claimValue)) {%>
value="<%= Encode.forHtmlAttribute(claimValue)%>"<%}%>
/>
<i class="dropdown icon"></i>
<div class="default text">Enter Country</div>
Expand All @@ -653,8 +656,10 @@
name="<%= Encode.forHtmlAttribute(claimURI) %>"
id="birthOfDate"
placeholder="Enter Birth Date"
<% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%>
value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%>
disabled<% } %>
<% if (StringUtils.isNotEmpty(claimValue)) { %>
value="<%= Encode.forHtmlAttribute(claimValue)%>"<% } %>
/>
</div>
</div>
Expand All @@ -675,8 +680,10 @@
placeholder="<%=IdentityManagementEndpointUtil.i18nBase64(
recoveryResourceBundle, claim.getDisplayName())%>"
<% }%>
<% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%>
value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%>
<% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%>
disabled<% } %>
<% if (StringUtils.isNotEmpty(claimValue)) { %>
value="<%= Encode.forHtmlAttribute(claimValue)%>"<% } %>
/>
<% } %>
</div>
Expand Down
Loading