Avoid Using More Than One Tag Per Page

< 1 min read

Impact Area

Manageability

Severity

Medium

Affected Element

Apex Page

Rule ID #

SF-0116

Impact #

Having multiple <apex:form> tags on a page means that a single page can be performing multiple unrelated data modification actions. This can make the page harder to maintain and understand.

Remediation #

Refactor your pages or components to use a single <apex:form> tag.

Time to fix #

40 min

References #

See the Salesforce documentation article: Visualforce Developer Guide > apex:form.

Updated on March 21, 2025
Was it helpful ?