Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I do a website with site.com. My page is doing like this :
- a form for add a data for my object
- a table with the data of my object.

When I add a data with my form, it's necessary I do F5(refresh) for data appears in the table. It's possible to do this automatic ?

share|improve this question
    
Can you post your code. If you're using visualforce you can use partial (Ajax) page refreshes using action Function / region –  techtrekker Jan 2 '13 at 11:01
    
it's possible with site.com to use visualforce page ? I use a visualforce page in my application but actually not in site.com. –  Marion Jan 2 '13 at 12:28
    
Sorry but i can't post my code... in site.com i can't see my code when I use a page element by default. If it's possible, can you tell me how ? Thanks ! –  Marion Jan 2 '13 at 12:30

1 Answer 1

You can do it by specifying Show another page for When Successful property of the SUBMIT properties of the form which would result in the entire page refreshing, including the table.

  1. Select the Form on you page in the Site.com Studio so that you can see the Properties panel on the right side of the page.

  2. There is a SUBMIT section that has a property called When Successful that is a picklist with the values Display a message and Show another page.

  3. Choose Show another page then you will be able to enter a value for Page URL.

  4. For Page URL enter the URL of your current page. For example, if you have a page called LeadFormPage then enter LeadFormPage (If you are using aliases or redirects you can use those as well).

enter image description here

The result will be that when the form is submitted successfully the entire page is refreshed, showing the end user the latest data available in the table.

This isn't a partial page refresh, though. To do that, I believe that you would need to handle the asynchronous form submission, response, and table refresh yourself using JavaScript.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.