function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Viasur-Viasur- 

Skip Zone selection when creating a new Idea

Hello all,

 

I was wondering if someone could tell me about the possibility of skipping the Zone selection page after clicking on 'new'  when creating an Idea. I have tried a number of things but can get it done. Any help would be much appreciated.

 

Thanks in advanced.

 

 

AshlekhAshlekh

 

 

Hi ,

 

Every idea is realted to zone ,Zone(communityId) is required for posting to idea if you don't have any access to zone then you are not able to create a idea.

 

Thanks

Ashllekh

AqilAqil

Hi Viasur,

 

Do you have a default zone that you are trying set?    We were able to the override the new buttn with a visualforce page.  This would require you to create a custom "Edit Page" for new ideas.  On saving the record you set the zone and the new fields in the controller.  We use the native edit page after the intial creation.    I hope that makes sense?

 

Thanks,

 

Aqil

 

Richa_LearningRicha_Learning
Hi Aqil,

Could you please share our code for Idea VF page and class? I am trying to do the same thing but it is not working. I am geting an error zone is missing.
 
Page:
<apex:page standardController="idea">
<apex:form >
<apex:pageBlock title="New Idea">
<apex:pageBlockButtons >
 <apex:commandButton action="{!Save}" value="Save"/>
 <apex:commandButton value="Cancel" action="{!Cancel}" />
</apex:pageBlockButtons>
<apex:pageBlockSection title="Idea Details" columns="1">
<apex:inputField style="width:250px" value="{!idea.title}"/>
<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
            

Class:

public with sharing class ideaExtension {
Private final Idea idea;
public ideaExtension(ApexPages.StandardController stdController) {
this.idea = (Idea)stdController.getRecord();
}
public String getCommunityId() {
return idea.CommunityId ='012G0000000nJvqINO';
}
}