Page 1 of 1

Warning on duplicate

Posted: Fri Jan 12, 2024 4:41 am
by crash

In ASPM23

Where or how would I set up a warning if a there is a duplicate field.
I have already setup for the field to check if it's a duplicate.

I want a pop up warning or any type of warning that tells the user why the record cannot be inserted.

Thanks


Re: Warning on duplicate

Posted: Fri Jan 12, 2024 5:16 am
by crash

Just to note I have tried all the default options that are currently in server events


Re: Warning on duplicate

Posted: Fri Jan 12, 2024 6:43 am
by MichaelG

Re: Warning on duplicate

Posted: Sun Jan 14, 2024 5:00 am
by crash

I've tried using this, but now I realize even my message showing does not work.. no popup message.

I've inspected no errors and I've checked all browser settings...

Is there a setting in ASPNM that should be checked for msg showing.
Validation is on server and client side.

Why would it not show?
Thanks


Re: Warning on duplicate

Posted: Sun Jan 14, 2024 9:41 am
by MichaelG

You can post your code for discussion.


Re: Warning on duplicate

Posted: Sat Feb 17, 2024 5:22 am
by crash

I am using this standard. I have a field that is selected to check duplicate.
When I enter a duplicate it just stays on the page and goes no further, no message. I need a warming message to say this is a duplicate entry.
My field name is <IDNo>.

// Message Showing event
// type = ""|"success"|"failure"|"warning"
public void Message_Showing(ref string msg, string type) {
// Note: Do not change msg outside the following 4 cases.
if (type == "success") {
msg = "your success message";
} else if (type == "failure") {
msg = "your failure message";
} else if (type == "warning") {
msg = "your warning message";
} else {
msg = "your message";
}
}


Re: Warning on duplicate

Posted: Sat Feb 17, 2024 6:40 am
by MichaelG

Show your codes for the Form_CustomValidate server event as well.