Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Need certificate issue date before certificate expiry date

tusharbhati
Tera Contributor

I want certificate issue and certificate expiry date on a table with condition that certification expiry date must be after certification issue date and need this condition on Submit. I want to show certificate expiry date only if certificate issue date is filled.

1 ACCEPTED SOLUTION

amitshishod
Tera Guru
You can write a UI Policy to show certificate expiry date and make it mandatory when certificate issue date is filled .
 
Condition : certificate issue date is empty 
And reverse if false should be checked
 
UI POlicy Action: Mandtory :  False, visible : False , Read only : true, Clear field value : checked
 
 
Use OnSubmit Client Script:
// Check backend names
var issueDate = g_form.getValue('u_certificate_issue_date'); 
    var expiryDate = g_form.getValue('u_certificate_expiry_date');
 
if(issueDate !== ""){
if (issueDate >= expiryDate) {
alert("issueDateCertificate issue date must be after than Certificate Expiry Date");
return false;
 
    }
}
Please mark my response correct and helpful, if it helps you.
 

View solution in original post

1 REPLY 1

amitshishod
Tera Guru
You can write a UI Policy to show certificate expiry date and make it mandatory when certificate issue date is filled .
 
Condition : certificate issue date is empty 
And reverse if false should be checked
 
UI POlicy Action: Mandtory :  False, visible : False , Read only : true, Clear field value : checked
 
 
Use OnSubmit Client Script:
// Check backend names
var issueDate = g_form.getValue('u_certificate_issue_date'); 
    var expiryDate = g_form.getValue('u_certificate_expiry_date');
 
if(issueDate !== ""){
if (issueDate >= expiryDate) {
alert("issueDateCertificate issue date must be after than Certificate Expiry Date");
return false;
 
    }
}
Please mark my response correct and helpful, if it helps you.