| | |
| | | function save(){ |
| | | var content = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:content')).value(); |
| | | var contentOther = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:contentOther')).value(); |
| | | if ((content.trim() == '' || content.trim() == null) && (contentOther.trim() == null || contentOther.trim() == '')) { |
| | | if ((content == '' || content == null) && (contentOther.trim() == null || contentOther.trim() == '')) { |
| | | alert('跟进内容不能为空!'); |
| | | return; |
| | | }else if (content == '其他' && (contentOther.trim() == '' || contentOther.trim() == null)) { |
| | | alert('跟进内容(其他)不能为空!'); |
| | | return; |
| | | }else if (content == '' || content == null) { |
| | | alert('跟进内容不能为空!'); |
| | | return; |
| | | }else{ |
| | |
| | | <apex:actionfunction action="{!savefo}" name="allSave" onComplete="check();unblockUI();"></apex:actionfunction> |
| | | <apex:pageBlock id="pageBlock"> |
| | | <apex:pageBlockSection id="pageBlockSection"> |
| | | <apex:inputField id="content" value="{!Inquiryform.Follow_Content__c}" style="width: 155px"/> |
| | | <apex:inputField id="content" value="{!Inquiryform.Follow_Content__c}" /> |
| | | <br /> |
| | | <apex:inputField id="contentOther" value="{!Inquiryform.Follow_Content_Other__c}" style="width: 150px"/> |
| | | <br /> |
| | | </apex:pageBlockSection> |
| | | <apex:pageblockbuttons > |
| | | <apex:commandbutton onclick="save();return false;" value="保存"></apex:commandbutton> |
| | | |
| | | <apex:pageblockbuttons location="bottom"> |
| | | <apex:commandButton onclick="save();return false;" value="保存"></apex:commandButton> |
| | | </apex:pageblockbuttons> |
| | | </apex:pageBlock> |
| | | </apex:form> |