# detect smart rules in editor view

**URL:** <https://community.hubspot.com/t/detect-smart-rules-in-editor-view/82373>\
**Category:** CMS Development\
**Created:** [May 31, 2023, 3:25pm UTC](https://community.hubspot.com/t/detect-smart-rules-in-editor-view/82373 "2023-05-31T15:25:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michalo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/michalo/32/29572_2.png) [@michalo](https://community.hubspot.com/u/michalo)\
**Post date:** [May 31, 2023, 3:25pm UTC](https://community.hubspot.com/t/detect-smart-rules-in-editor-view/82373/1 "2023-05-31T15:25:01Z")

</div>

Hi I’m investigating if there is any possibility to show some kind of alert in page editor view if page has any smart rules.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 1, 2023, 5:11am UTC](https://community.hubspot.com/t/detect-smart-rules-in-editor-view/82373/2 "2023-06-01T05:11:48Z")

</div>

Hey, @michalo 👋 Welcome to the community! Thanks for your question. You are not missing a documented option. I agree with you, something like this would be useful. You’ll either need to add comments to your HTML where smart rules are added. Like this (a super basic example):

```lia-code-sample
<!-- SMART RULE: This page uses a smart rule to display different content to different visitors -->

```

Or you can manually check for it.

I understand this isn’t the alert you are looking for. And I don’t want you searching for an option that doesn’t exist.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![michalo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/michalo/32/29572_2.png) [@michalo](https://community.hubspot.com/u/michalo)\
**Post date:** [June 1, 2023, 9:06am UTC](https://community.hubspot.com/t/detect-smart-rules-in-editor-view/82373/3 "2023-06-01T09:06:01Z")

</div>

I wish there is hubl function or any sign in html source of the page that we can check for using JS for example.
