The CreatorCon Call for Content is officially open! Get started here.

Show error message on catalog item

Sneha39
Mega Guru

I want to display error message on catalog item(UI/Portal) from business rule and abort action - submitting RITM from that catalog item

1 ACCEPTED SOLUTION

Sneha39
Mega Guru

If anyone interested. 

I have used script include to show error message via onchange and onsubmit client script. when BR is involved.

View solution in original post

2 REPLIES 2

Murthy Ch
Giga Sage

@Sneha

If you want to restrict the catalog item to be submitted use onSubmit() catalog client script where use return false

g_form.addErrorMessage("Your message"); //in client side
gs.addErrorMessage("Your message"); //in server side
function onSubmit() {
   //Type appropriate comment here, and begin script below
   return false; //to abort the action to be submitted
}

Hope it helps

 

Thanks

Murthy

 

Thanks,
Murthy

Sneha39
Mega Guru

If anyone interested. 

I have used script include to show error message via onchange and onsubmit client script. when BR is involved.