Fxiaoke Developer Manual Fxiaoke Developer Manual
  • APL Development Manual
  • PWC Development Manual
  • OpenAPI Documentation
  • Custom Components (PC)
  • Custom Components (Mini Program)
  • Custom Plugins (PC)
  • Custom Plugins (Mini Program)
  • Third-party Integration Plugins (H5)
  • API (PC)
  • API (Mini Program)
  • Fx DevTools
Update Log
  • 简体中文
  • English
  • Custom Components (PC)
  • Custom Components (Mini Program)
  • Custom Plugins (PC)
  • Custom Plugins (Mini Program)
  • Third-party Integration Plugins (H5)
  • API (PC)
  • API (Mini Program)
  • Fx DevTools
Update Log
  • 简体中文
  • English
  • Getting Started

  • List Page Plugin v1

  • List Page Plugin v2(Beta)

  • Detail Page Plugin

  • Form Page Plugin v1

  • Form Page Plugin v2(Beta)

  • Workflow Detail Page Plugin

    • Introduction
    • Quick Start
    • Events

      • Before Approval Detail Content Render
      • Before Approval Edit Form Render
        • 1. forceShowEditForm
      • Before Skip Approval Opinion Direct Complete
      • Before Approval Opinion Page Render
      • Before Reject Mode List Render
      • Before Reject Then Move To Current Node Title Render
      • Before Reject Task List Render
      • Before Approval Edit Form/Page Render
      • Before Approval Opinions Render
      • Before Approval Detail Action Pre-logic Interception
  • Workflow Todo List Page Plugin

  • BPM Plugin

  • Stage Plugin

  • Stage View Plugin

Table of Contents

Before Rendering Approval Content Edit Form/Page

flow.approval.edit.form.render.before

Description: This hook is triggered before rendering the approval content edit form/page in the approval details page, such as forcibly displaying the approval content edit form/page.

# 1. forceShowEditForm

# Functional Description

  1. For regular layout configurations of approval content: When there are no required fields or required fields already contain data, the system will not display the approval content popup but instead shows the approval comment popup to complete the approval process.
  2. For workflow layout configurations of approval content: When there are no required fields and no source objects, the system will not redirect to the approval content page but instead shows the approval comment popup to complete the approval process.
  3. If this API is executed in PWC, the approval content popup/page will be opened/redirected in the above scenarios.

# Parameters

Parameter Description Type
isForceShowEditForm true: Force open the edit content popup/page
false: Do not force open the edit content popup/page
Boolean

# Parameter Code Example

forceShowEditForm: true  

# Code Example

module.exports = function (context, pluginService, pluginParam) {  
    return {  
        apply() {  
            let self = this;  
            return [{  
                /**  
                 * Set externally exposed methods for plugins  
                 * Whether to force entering the form page (forceShowEditForm) when the workflow has forms  
                 */  
                event: "flow.approval.edit.form.render.before",  
                functional: async function (context, options) {  
                    return Promise.resolve({  
                        // When return value is true, force entering the form page  
                        forceShowEditForm: true  
                    });  
                }  
            }]  
        }  
    }  
}  
Force Display Approval Content Edit Popup/Page
Before Approval Detail Content Render
Before Skip Approval Opinion Direct Complete

← Before Approval Detail Content Render Before Skip Approval Opinion Direct Complete→

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式