# Zoom Phone Smart Embed

**URL:** <https://devforum.zoom.us/t/zoom-phone-smart-embed/112535>\
**Category:** Phone\
**Tags:** phone\
**Created:** [June 25, 2024, 1:21pm UTC](https://devforum.zoom.us/t/zoom-phone-smart-embed/112535 "2024-06-25T13:21:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gterry180](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gterry180/32/60496_2.png) [@gterry180](https://devforum.zoom.us/u/gterry180)\
**Post date:** [June 25, 2024, 1:21pm UTC](https://devforum.zoom.us/t/zoom-phone-smart-embed/112535/1 "2024-06-25T13:21:59Z")

</div>

Trying to use the script option for smart phone embed but getting this error.

sdk.js:2 Uncaught  
TypeError: Cannot read properties of undefined (reading ‘length’)  
at t.onCreateRule (sdk.js:2:218646)  
at $r (sdk.js:2:207030)  
at t.add (sdk.js:2:214503)  
at new e (sdk.js:2:216719)  
at t.createStyleSheet (sdk.js:2:226022)  
at Gi (sdk.js:2:242758)  
at sdk.js:2:244233  
at Ji (sdk.js:2:243690)  
at f (sdk.js:2:244147)  
at ul (sdk.js:2:248942)

return t.onCreateRule = function(e, t, n) {  
for (var r = 0; r \< this.registry.onCreateRule.length; r++) {  
var a = this.registry.onCreateRule[r](e, t, n);  
if (a)  
return a  
}  
return null  
}

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 9, 2024, 7:37pm UTC](https://devforum.zoom.us/t/zoom-phone-smart-embed/112535/2 "2024-07-09T19:37:57Z")

</div>

Can you please link the documentation you referenced and the steps to reproduce? @gterry180

---

<div class="post-metadata">

**Author:** ![gterry180](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gterry180/32/60496_2.png) [@gterry180](https://devforum.zoom.us/u/gterry180)\
**Post date:** [July 9, 2024, 8:43pm UTC](https://devforum.zoom.us/t/zoom-phone-smart-embed/112535/4 "2024-07-09T20:43:18Z")

</div>

I’m not sure this is useful to anyone else, but the site had some custom js that was interfering. So we just opted to use the iframe option.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 10, 2024, 4:46pm UTC](https://devforum.zoom.us/t/zoom-phone-smart-embed/112535/5 "2024-07-10T16:46:13Z")

</div>

Thanks for sharing @gterry180 !
