Title: 3rd-party portal using JavaScript and HTML
Last modified: October 25, 2019

---

# 3rd-party portal using JavaScript and HTML

 *  [Upshift-86](https://wordpress.org/support/users/upshift-86/)
 * (@upshift-86)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/3rd-party-portal-using-javascript-and-html/)
 * I am trying to add a Refill Prescription portal and getting a no config id error
   and the portal will not load. I created a file called ‘head’ with the following
   JavaScript
 *     ```
       attrLogo = 'color';
       pid = xxxx; // config1 pharmacy app-code
       configid = 'xxxxxxx4'; // config2.0 
       Pharmacy uuid
       ```
   
 * placed it in “url/js/head” in the root directory. Then, added
 *     ```
       <script src="xxxxxx.com/js/head"></script>
       to the header. I added the HTML for Refill: <div class="refillApp"><div><script src="https://api-web.xxxxxx.com/refill/shared_config/embedRefillApp.js"></script></div></div>
       and Sign in: <div class="portalApp"><div><script src="https://api-web.rxwiki.com/portal/shared_config/embedPortalApp.js"></script></div></div>.
       ```
   
    -  This topic was modified 6 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This topic was modified 6 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This topic was modified 6 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F3rd-party-portal-using-javascript-and-html%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Jasonian](https://wordpress.org/support/users/jasonian/)
 * (@jasonian)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/3rd-party-portal-using-javascript-and-html/#post-12066222)
 * Hi Upshift-86.
 * It looks like the app is looking for URL parameters, which it then returns as
   objects.
 * To get it to work, all I had to do was add the parameter of configId as a query
   string.
 * `<iframe src="//api-web.rxwiki.com/refill/?configId=2000517c-b911-44b8-9ae6-0a845c692874"
   id="rxRefillApp" width="100%" scrolling="no" style="min-height: 200px; overflow:
   hidden; height: 571px;"></iframe>`
 * You can add the other parameters, separating them by an ampersand.
 * It looks like the only allowed parameters are as follows (two different files,
   running similar functions)
 * From embedPortalApp.js
 *     ```
       var allowedParams = [
           'configId',
           'email_token',
           'password_reset',
           'validated',
           'content_id',
           'defaultLocationId',
           'utm_campaign',
           'utm_source',
           'utm_medium',
           'utm_term',
           'utm_content'
       ];
       ```
   
 * From embedRefillApp.js
 *     ```
       var allowedParams = [
           'configId',
           'validated',
           'defaultLocationId',
           'utm_campaign',
           'utm_source',
           'utm_medium',
           'utm_term',
           'utm_content'
       ];
       ```
   
 * Maybe this helps.
 *  Thread Starter [Upshift-86](https://wordpress.org/support/users/upshift-86/)
 * (@upshift-86)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/3rd-party-portal-using-javascript-and-html/#post-12070272)
 * The form is rendering now using your solution. However, I do not have test credentials
   to fill a prescription. I created an account and when I sign in I’m directed 
   to a 404. I asked our client to test script refill and will find out tomorrow.
   I will follow up with another post. Thank you so much for your help!
 *  Thread Starter [Upshift-86](https://wordpress.org/support/users/upshift-86/)
 * (@upshift-86)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/3rd-party-portal-using-javascript-and-html/#post-12103218)
 * Your solution did work and we can’t thank you enough. We really appreciate your
   help! I’m not sure how this org works but is there a way to voluntarily compensate
   people who contribute?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘3rd-party portal using JavaScript and HTML’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [Upshift-86](https://wordpress.org/support/users/upshift-86/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/3rd-party-portal-using-javascript-and-html/#post-12103218)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
