Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
10 subscribers
Views
3630 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Change Password Link/Button on Login Page
varnikam
over 7 years ago
Hi,
We have a requirement to provide the users with a functionality to change their passwords on the login screen. To meet this requirement I am able to show a "Change Password" button on the login page but when I click on it, it's not redirecting me to the "changepassword.jsp" page. It's showing the first screen or the login screen only. However the url of that screen gets changed to /suite/tempo/personalization/changepassword.jsp once the link is clicked.
Can anyone tell me what I am missing and how can I achieve this functionality?
Below is the code added in login.jsp page -
JavaScript function
<script type="text/javascript">
function openPage(pageURL)
{
window.location.href = pageURL;
}
</script>
JSP code
<input type="button" value="Change Password" name="ChangePwd"
onclick="openPage('personalization/changepassword.jsp')"/>
Thanks,
Varnika
OriginalPostID-251522
Discussion posts and replies are publicly visible
Parents
0
vinayakb
over 7 years ago
@Varnikam: Sorry, I just saw the comment now. By absolute I mean complete path.
like http://www.domainname.com/pathURL ('personalization/changepassword.jsp'). If you provide as relative, which is the current case. The relative path, automatically calculates the given path based on the website URL. It is always a good practice to give complete path.
May be you can check the below link:
http://stackoverflow.com/questions/21306512/difference-between-relative-path-and-absolute-path-in-javascript
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
vinayakb
over 7 years ago
@Varnikam: Sorry, I just saw the comment now. By absolute I mean complete path.
like http://www.domainname.com/pathURL ('personalization/changepassword.jsp'). If you provide as relative, which is the current case. The relative path, automatically calculates the given path based on the website URL. It is always a good practice to give complete path.
May be you can check the below link:
http://stackoverflow.com/questions/21306512/difference-between-relative-path-and-absolute-path-in-javascript
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data