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 to our product team.
Comments
Let us know what was helpful or not helpful about the article.0 comments
Please sign in to leave a comment.