--- title: "Script Methods" slug: "script-methods" description: "Learn about script methods." updated: 2026-07-09T17:58:13Z published: 2026-07-09T17:58:13Z canonical: "www.civicplus.help/script-methods" --- > ## Documentation Index > Fetch the complete documentation index at: https://www.civicplus.help/llms.txt > Use this file to discover all available pages before exploring further. # Script Methods ## Control Methods These methods are used to make changes to the content item or to reject changes to the content item. | Name | Description | | --- | --- | | replace() | Tell the HCMS that you have made modifications to the ctx.dataobject and that this change should be applied to the content. | | disallow() | Tell the HCMS that this operation is not allowed and that a 403 (Forbidden) status code should be returned. The user will see an alert in the HCMS user interface. | | reject(reason) | Tell the HCMS that this operation is not valid and that a 400 (BadRequest) status code should be returned. The user will see an alert in the HCMS user interface. | --- ## Additional Methods (Feature Enhancements) If you would like to see additional script methods, please [submit a feature request](/civicplus-help-center/docs/civicplus-product-feedback) to our product team. --- ## Resources - [Create Scripts for a Content Type](/civicplus-help-center/docs/create-scripts-for-a-content-type) - [Variables for Scripts](/civicplus-help-center/docs/variables-for-scripts) - [Script Use Cases](/civicplus-help-center/docs/script-use-cases)