Customer Portal

Get Involved. Join the Conversation.

Topic

    Eric Gottesman
    Embedded Chat Inlay - how to set stringsAnswered
    Topic posted August 8, 2019 by Eric GottesmanBlue Ribbon: 750+ Points 
    46 Views, 5 Comments
    Title:
    Embedded Chat Inlay - how to set strings
    Content:

    I was just reading the release notes on the OIT Registry, and I see these items:

    • Added strings attribute to the config file to allow customization of all inlay strings
    • Added strings tab to each inlay documentation page

    I'm trying to find the "strings tab" in the inlay documentation so I can understand how to modify strings, but I can't seem to locate that. What am I missing?

    Thanks!

    Best Comment

    Willie Eide

    Hey Eric,

    Here is a screen shot of where to find the list of strings (under each Inlay)

    To modify any string you will need to review the documentation under Config Files.
    The config file url is an attribute for the OIT Loader Script  and points to a json file that may look like this:

    {
      "inlays": {
        "types": {
            "inlay-oracle-chat-embedded": {
            "attributes": { 
              "off-the-record-enabled": "true"
            },
            "strings": {
               "title" : "This is my new title",
               "launchFormSubjectLabel": "Subject",
               "launchFormFirstNameLabel": "What is your first name?",
               "launchFormLastNameLabel": "What is your last name?",
               "launchFormEmailLabel": "Put your email address here",
               "launchFormSubmitText": "Click here to connect to chat",
               "connectStatusConnected": "You are connected",
               "chatSendFormMessagePlaceholder": "Type message in this box"
            }
          }
        }
      }
    }
    

    As you can see, I can overwrite any string and list any attributes here

    I hope this helps.

    Willie

    Comment

     

    • Willie Eide

      Hey Eric,

      Here is a screen shot of where to find the list of strings (under each Inlay)

      To modify any string you will need to review the documentation under Config Files.
      The config file url is an attribute for the OIT Loader Script  and points to a json file that may look like this:

      {
        "inlays": {
          "types": {
              "inlay-oracle-chat-embedded": {
              "attributes": { 
                "off-the-record-enabled": "true"
              },
              "strings": {
                 "title" : "This is my new title",
                 "launchFormSubjectLabel": "Subject",
                 "launchFormFirstNameLabel": "What is your first name?",
                 "launchFormLastNameLabel": "What is your last name?",
                 "launchFormEmailLabel": "Put your email address here",
                 "launchFormSubmitText": "Click here to connect to chat",
                 "connectStatusConnected": "You are connected",
                 "chatSendFormMessagePlaceholder": "Type message in this box"
              }
            }
          }
        }
      }
      

      As you can see, I can overwrite any string and list any attributes here

      I hope this helps.

      Willie

    • Eric Gottesman

      Thank you! Apparently one of my Chrome extensions was blocking the navigation links up top (Attributes, Strings, Events) so I didn't see them. After I read your post, I opened the registry up in an incognito tab and was able to see those links.

      Anyway, this is a great feature, and so glad it's available now!

      • Willie Eide

        Cool. Yay.

        We are currently working on translations so we will have a bucket full of different languages so that you do not have to change all (in some cases 100) strings jsut to support a different language. Hopefully we can have that by the end of August 2019.

    • Willie Eide

      Also Eric, I hope you can take a look at the many improvements we have done around accessibility. Granted it's not something that is readily visible but as I know you are very ADA aware, you can check out the modifications we have done.

      • Eric Gottesman

        Thank you Willie. I will encourage the client to re-run their accessibility tests so they'll be aware of the improvements.

        It's great to see the inlay chat tools evolving so quickly!