You need to sign in to do that
Don't have an account?
Create new Vf page
Hi all , want to create vf page like below
For this i have written vf page code as
<apex:page id="FeedbackPage" controller="FeedbackClass" standardStylesheets="false" showHeader="false" sidebar="false">
<c:ExternalLibrary />
<apex:composition template="GNT__ModalTemplate">
<apex:define name="ModalContent">
<apex:form >
<apex:pageBlock title="New feedback">
<apex:pageBlockSection >
Type<apex:inputText value="{!Type}"/>
Subject<apex:inputText value="{!Subject}"/>
Description<apex:inputTextArea richText="true" value="{!Description}"/>
URL<apex:inputText value="{!URL}"/>
<apex:commandButton value="Submit" onclick="alrt()" action="{!save}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:define>
</apex:composition>
</apex:page>
and Controller is
public without sharing class FeedbackClass{
public String Description{get;set;}
public String Subject{get;set;}
public String Type{get;set;}
public String URL{get;set;}
public PageReference save() {
Feedback__c ac = new Feedback__c();
ac.Description__c= Description;
ac.Subject__c= Subject;
ac.Type__c= Type;
ac.URL__c= URL;
insert ac;
this.Description = null;
this.Subject= null;
this.Type = null;
return null;
}
}
and got result
so how to add Picklist field and attachment tab to this vf page please help
Can you try the below code .
Vf page:
Apx:
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,