jeudi 7 juillet 2016

Cancel button should be diabled while first time login or when password got expired?

        In GUI, we have a condition that during first time login we have to change password.
        In GUI. we have two buttons :
        1- cancel
        2- change

        I want cancel button should be in disabled state when we are trying to login first time ?

        Please find the below piece of code :

        <TR>
        <TD><B>$SPAuthentication_Username</B></TD>
        <TD COLSPAN="2">$name<INPUT TYPE="hidden" NAME="Username" VALUE="$name"></TD>
        </TD></TR>

        <TR><TD><B>$SPAuthentication_Old_Password</B></TD>
        <TD COLSPAN="2"><INPUT TYPE="password" NAME="OldPassword" SIZE=22 MAXLENGTH=40 VALUE="">
        </TD></TR>

        <TR><TD><B>$SPAuthentication_New_Password</B></TD>
        <TD COLSPAN="2"><INPUT TYPE="password" NAME="Password" SIZE=22 MAXLENGTH=40 VALUE="">
        </TD></TR>

        <TR><TD><B>$SPAuthentication_Confirm_Password</B></TD>
        <TD COLSPAN="2"><INPUT TYPE="password" NAME="ConfirmPassword" SIZE=22 MAXLENGTH=40 VALUE="">
        </TD></TR>
        </TABLE>
        </FIELDSET>
        <P ALIGN="RIGHT">
            #reference("$SO_Button_Cancel", "$Request.ServletPath/Services/ListServices$csrfTokenWithQuestionMark", "$General_Cancel", "button")
        &nbsp;
            <input name="save" type="submit" class="submitButton" value="$SO_Button_Change"/>

    ***************************
        $General_Cancel = Cancel //value
        $SO_Button_Change ='Change' //value

    Can you please tell me how will i disable cancel button during first time login ?
    same feature also I want if password will expire ?

How to disable cancel button during first time login ?

The above code is written in webmicros(*.wm).

Is there any way we can do the same . As I am new to this webmicro , any1 knows please let me know or share some tutorial link if any ?

I want cancel button should be in disabled state when we are trying to login first time ?




Aucun commentaire:

Enregistrer un commentaire