You need to sign in to do that
Don't have an account?
apex:inputFile can not be used in conjunction with an action component
<apex:page standardController="Order" extensions="orderPageLayoutController"> <apex:form id="fm"> <apex:pageBlock id="pbsk"> <apex:pageBlockSection title="Order Terms and Client POC Details" columns="2"> <apex:pageblocksectionItem > <apex:outputlabel value="Invoice Contact" /> <apex:actionRegion > <apex:inputField value="{!Order.Invoice_Contact__c}" required="true"> <apex:actionSupport event="onchange" action="{!autoFillData}" reRender="conEmail,conPhone"/> </apex:inputField> </apex:actionRegion> </apex:pageblocksectionItem> <apex:inputField value="{!Order.Invoice_Email__c}" id="conEmail"/> <apex:inputField value="{!Order.Invoice_Phone__c}" id="conPhone"/> <apex:repeat value="{!$ObjectType.Order.FieldSets.Contact_Name_and_Payment_Terms}" var="f"> <apex:inputField value="{!Order[f]}" required="{!OR(f.required, f.dbrequired)}" /> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:form> <!-- File Uplaod Section --> <apex:form enctype="multipart/form-data"> <apex:pageBlock id="thePageBlock" > <apex:pageBlockSection title="Upload Related Files" columns="1"> <apex:pageMessages /> </apex:pageBlockSection> <apex:pageBlockSection showHeader="false" columns="1" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel value="File Name" for="fileName"/> <apex:inputField value="{!theConVer.title}" styleClass="slds-input slds-size_1-of-2"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value="File" for="file"/> <apex:inputFile value="{!theConVer.versionData}" fileName="{!fileName}" id="file" /> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value="Document Type"/> <apex:inputField value="{!theConVer.Document_Type__c}" styleClass="slds-listbox slds-input slds-size_1-of-2" required="true" /> </apex:pageBlockSectionItem> </apex:pageBlockSection> <input id="uploadButton" type="button" value="Upload file" name="uploadFile" onclick="uploadFileToTemp()" /> </apex:pageBlock> <apex:actionFunction action="{!uploadFile}" name="uploadFile" reRender=""/> </apex:form> <script type="text/javascript"> function uploadFileToTemp(){ document.getElementById ('uploadButton').disabled = true; uploadFile(); } </script> </apex:page>
Hello,
Can anyone help me out to fix the rerender with apex:inputfile issue :
For this you can use command button and in the reRender attribute of command button give id of the pageblock you want to refresh.
Try this one
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_commandButton.htm
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
I hope you are doing well .....!!
Then go through the below sample code.
Hope this helps you.
Let me know your review.
If this helps kindly mark it as solved so that it may help others in the future.
Thanks & Regards,
Foram Rana