我是visualforce的新手,我有几个问题。我能够创建一个基本的visualforce页面:
<apex:page standardController="Campaign">
<apex:sectionHeader title="Campaign" subtitle="Campaign Edit"/>
<apex:form id="theForm">
<apex:pageBlock title="Campaign" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
<apex:commandButton value="Save & New" action="{!'save & new'}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Content Section" columns="2">
<apex:inputText value="{!Campaign.name}" id="name"/>
<apex:inputfield value="{!Campaign.Campaign_Type__c}">
<apex:actionSupport event="onchange" reRender="theForm" />
</apex:inputField>
<apex:inputtext value="{!Campaign.PPC__c}" rendered="{!Campaign.Campaign_Type__c == 'Campaign Type 1'}" />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
“广告系列名称”字段是必填字段,如何在该字段旁边添加红色条?
如何将多个字段“组合”在一起并将它们作为值插入到字段 Campaign name 中?例如,我有一个下拉字段“Campaign_Type__c=Type 1”,还有一个文本框字段“Campaign_textbox1__c=alex”我想将它们组合为“Type 1 alex”并将其设置为字段名称“Campaign name”的值”。
谢谢