+ Start a Discussion
krish99krish99 

Dynamically Error Messages

I have x custom object it having the fields quantity,qunatity increment i have to display Dynamic error message at the quantity field.. when MOD(Quantity__c, QtyIncrement__c )>0 this condition is achieved i have to display the error message dynamically in visualforce page, Quantityincremnt is the inputHidden feild in visualforce page

For eample in Quantiyincrement=10, at that time if i enter quantity=2 at that it have to show error multiples of 10, For eample in Quantiyincrement=2, at that time if i enter quantity=3 at that it have to show error multiples of 2,
ShashForceShashForce
Hi,

You can dynamically rerender visualforce components conditiobally. Please see this:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_dynamic_vf_components_intro.htm
http://www.oyecode.com/2013/04/how-to-re-render-part-of-visualforce.html

Thanks,
Shashank