• Sam Kessler
  • NEWBIE
  • 70 Points
  • Member since 2018

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hello,

We have a visualforce page called Safesend Returns in a Lightning tab. When we hit save it redirects to the Details tab. Is there a way to make the visualforce page stay in the Safesend Returns tab after save?

User-added image


Visualforce Page
<apex:page standardController="Account" lightningStylesheets="true">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection columns="2">
            


<apex:outputField value="{!Account.TaxSoftware__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.Est_of_tax_returns__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Demo__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1040s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Total_Revenue__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1041s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Opportunity_Date__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1120__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Original_Purchase_Date__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1120S__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Client_Status__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1065s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Next_Steps__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.Verified_of_Returns__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
  • July 30, 2019
  • Like
  • 0
Hello all,
I am trying to create a button on an object that will open a FormAssembly form, prepopulating several fields from the object into it. Then it will create a new object as a child of the first.

I found something like this for sending an email template out, 
<a href="formURL?tfa_co={!Lead.Company}&tfa_LeadId={!Lead.Id}">Please click here to take our survey.</a>

COuld this convert to a button on my record page? I am a new(er) admin on my own and I've never done a button or FormAssembly before.
 
Hey all!
I have a visualforce page using an apex:tabpanel element wrapped in an outputPanel. When I rerender the outputpanel, the formatting of the tabpanel breaks down, showing the content of all tabs stacked on the page instead of only the content of the selected tab. For the tabpanel, I'm using switchtype="client" because I think it's a smoother user experience.

If I had to guess, I would say the tabpanel element is probably using jquery to handle its tab transitions, and when the element is rerendered it's scrubbing some of the script and breaking down the display a little. I've seen some comments around HTML5 elements being scrubbed unless you specify it in the doctype, but I have specified the html-5.0 doctype and it didn't help here.

The best workaround I can think of would be to re-render only all the individual elements within the tabpanel instead of the tabpanel itself, but that would be quite a laborious implementation.

Has anyone faced anything similar or know of a better workaround to rerender a tabpanel without messing up the display format?
Our team reported they hit a concurrent session limit followed by a 1-hour 'lockout' period, but I can't find reference to this in documentation anywhere. I see there are multiple posts on the forums about this as well, but no satisfactory answers. Could someone let me know if the session limit is real, and if there's a resulting lockout period if one exceeds the limit? 
Hello,

We have a visualforce page called Safesend Returns in a Lightning tab. When we hit save it redirects to the Details tab. Is there a way to make the visualforce page stay in the Safesend Returns tab after save?

User-added image


Visualforce Page
<apex:page standardController="Account" lightningStylesheets="true">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection columns="2">
            


<apex:outputField value="{!Account.TaxSoftware__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.Est_of_tax_returns__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Demo__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1040s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Total_Revenue__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1041s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Opportunity_Date__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1120__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Original_Purchase_Date__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1120S__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Client_Status__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.of_1065s__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.SSR_Next_Steps__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

<apex:outputField value="{!Account.Verified_of_Returns__c}">  
<apex:inlineEditSupport event="ondblclick" /> 
</apex:outputField>

            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
  • July 30, 2019
  • Like
  • 0
Hey all!
I have a visualforce page using an apex:tabpanel element wrapped in an outputPanel. When I rerender the outputpanel, the formatting of the tabpanel breaks down, showing the content of all tabs stacked on the page instead of only the content of the selected tab. For the tabpanel, I'm using switchtype="client" because I think it's a smoother user experience.

If I had to guess, I would say the tabpanel element is probably using jquery to handle its tab transitions, and when the element is rerendered it's scrubbing some of the script and breaking down the display a little. I've seen some comments around HTML5 elements being scrubbed unless you specify it in the doctype, but I have specified the html-5.0 doctype and it didn't help here.

The best workaround I can think of would be to re-render only all the individual elements within the tabpanel instead of the tabpanel itself, but that would be quite a laborious implementation.

Has anyone faced anything similar or know of a better workaround to rerender a tabpanel without messing up the display format?
Hello all,
I am trying to create a button on an object that will open a FormAssembly form, prepopulating several fields from the object into it. Then it will create a new object as a child of the first.

I found something like this for sending an email template out, 
<a href="formURL?tfa_co={!Lead.Company}&tfa_LeadId={!Lead.Id}">Please click here to take our survey.</a>

COuld this convert to a button on my record page? I am a new(er) admin on my own and I've never done a button or FormAssembly before.