Avoid using more than one <apex:form> tag per page

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.

What's here


Related content

Salesforce rules

Apex Page rules




Last modified on Jun 10, 2020