question

Joel Estrellado avatar image
Joel Estrellado asked Joel Estrellado answered

embeddable widget change fromNumber dynamically when calling out

hello, i'm using the embeddable widget, i have 3 numbers for each state i'm calling. From my CRM when selecting a state with many phone numbers, i would like to override the from number value without having to select from dropdown list each time before I make the call. I can populate the to number by using the postMessage as below

document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({
    type: 'rc-adapter-new-call',
    phoneNumber: phone,
    fromNumber: <selectedPhoneForTheState>,
    toCall: true,
}, '*');

the fromNumber field doesn't seem to override the current selected number on the widget. is there a way to do this dynamically?

thanks

phone
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Joel Estrellado avatar image
Joel Estrellado answered
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys