+ Start a Discussion

visual workflow?

Hi all, we can embed a visual workflow in visualforce page? and i want to visual workflow to be displayed in the webpage.please let me know whether it is possbile or not? Thanks!


Try the below code snippet as reference:


<apex:page controller="InsuranceController" sidebar="false">

  <div style="float: left; width: 400px; padding: 10px;">

    <flow:interview name="InsuranceFlow" interview="{!myFlow}" rerender="myScript"/>


  <div style="float: left;">

    <iframe id="myFrame" frameborder="0" width="600" height="450"/>


  <apex:outputPanel id="myScript">

    <script type="text/javascript">






public with sharing class InsuranceController {

    public Flow.Interview.InsuranceFlow myFlow {get;set;}


    public InsuranceController() {

        myFlow = new Flow.Interview.InsuranceFlow(new Map());




Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.