Is there a way to do this? I can change a property with the applyProperty() api but it looks like one extra level to use this property. I need to flip the error condition on. Right now I am using an alert() message but it would look a lot nicer if I can access the error message bubble.
if (repairDate > today || repairDate <= openDate){
alert("Invalid Date.")
pui.set("RepairDate", " ");
}
Access Error Messages through JS
-
- Profound User
- Posts: 36
- Joined: Thu Jan 02, 2014 6:20 pm
- First Name: Brian
- Last Name: Lannoye
- Company Name: Dealertrack Technologies
- Phone: 801.617.1806
- State / Province: Utah
- Zip / Postal Code: 84095
- Country: United States
- Contact:
- Glenn
- Profound Logic Staff Member
- Posts: 124
- Joined: Mon Apr 14, 2014 4:08 pm
- First Name: Glenn
- Last Name: Hopwood
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Access Error Messages through JS
Brian,
I would normally suggest that you do this sort of validation on the server-side and use the 'error messages' property. Have you tried this solution and weren't happy with the way it worked, or would you just prefer this be done on the client-side?
Glenn
I would normally suggest that you do this sort of validation on the server-side and use the 'error messages' property. Have you tried this solution and weren't happy with the way it worked, or would you just prefer this be done on the client-side?
Glenn
- Glenn
- Profound Logic Staff Member
- Posts: 124
- Joined: Mon Apr 14, 2014 4:08 pm
- First Name: Glenn
- Last Name: Hopwood
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Access Error Messages through JS
Brian,
Just in case you do, in fact, prefer to do the validation on the client-side we provide an API to show the error messages. It's called pui.errorTip(). You can find more info here: http://www.profoundlogic.com/docs/pages ... d=13664277
Glenn
Just in case you do, in fact, prefer to do the validation on the client-side we provide an API to show the error messages. It's called pui.errorTip(). You can find more info here: http://www.profoundlogic.com/docs/pages ... d=13664277
Glenn
-
- Profound User
- Posts: 36
- Joined: Thu Jan 02, 2014 6:20 pm
- First Name: Brian
- Last Name: Lannoye
- Company Name: Dealertrack Technologies
- Phone: 801.617.1806
- State / Province: Utah
- Zip / Postal Code: 84095
- Country: United States
- Contact:
Re: Access Error Messages through JS
I'd prefer to do this on the back end too, but they want it on the UI. That api did the trick. Thanks!
Who is online
Users browsing this forum: No registered users and 1 guest