• 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>.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    (@upshift-86)

    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

    (@upshift-86)

    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.