Forums

Forums / Developing Portals / Query on CRM File Upload Widget.

Query on CRM File Upload Widget.

Thread is closed for posting
2 posts, 1 answered
  1. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    18 Apr 2015
    Link to this post
    Hi,
    Will CRM File Upload Widget show any error message (apart from small red symbol) if the uploaded file reaches the maximum size?
    Is there a way to show a message out of box ?

  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    20 Apr 2015 in reply to vmeesaraganda
    Link to this post
    Hello,

    Currently there is no out of the box functionality to show a message box instead of the red symbol. You could however attach an event to the file upload control that will allow you to do this for yourself.

    The file upload control is currently not findable by standard API methods (API added in 3.0), but once you have access to the object:

    $find("C001_ctl00_ctl00_ctl00_C007").get_radUpload().add_validationFailed(function(o,e){
    	alert(e.get_fileName() + " is invalid");
    });
    
2 posts, 1 answered