URL Link should display in the richtextwithTable plugin function

Certified Senior Developer

Hi All,

We have the requirement to retrieve & show the Emails send to the Users in the read only format. In the Email content it contains URL links, tables so i archived the table content with the richTextFieldWithTables function but we need to show the URL link as Link but it is taking it has text. Please find below screenshot

In the Preview mode we could see the Table & the associate URL Links but the URL displayed as text instead of Link. So please suggest is there any way to show the URL in link

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Konduru Chaitanya

    "<!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <p>Dear Colleague(s),</p>
    
    
    <p>Sanofi investigators should be notified of any " & ri!id & " through 'test' (test).</p>
    
    <p>This e-mail informs you that DIL files issued have been newly posted in the DIL Electronic Portal.</p>  
    
    <p>The following IMP product(s) had a DIL posted today.</p>
    
    <style>
    table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    }
    </style>
    <table>
    <tr>
    <th>Product</th>
    <th>Link to test</th>
    </tr>
    " & 
    a!localVariables(
      local!studyId:rule!DIL_test(studyId: ri!test),
      
      a!forEach(
        items: local!studyId,
        expression: "
    <tr>
    <td>" & fv!item[recordType!test.field]&" "&
    "(Product Code: "&fv!item[recordType!test.field]&")"&" "&
    "(Case Id: "&rule!APN_distinct(ri!id)&")"
    & "</td>
    <td>" & 
    a!forEach(
      items: ri!id,
      expression: a!urlForSite(
        sitePage: application stite page,
        urlParameters: a!map(
          product: {
            rule!DIL_test(
              id: fv!item
            )
          },
         
        )
      )
    )
    & "</td>
    </tr>
    "
      )
    )
     & "
    </table>
    
    <p>Please provide any feedback to the generic mailbox ash@sanofi.com</p>
    
    <p>To generate a complete ttest file, you have to download each of the following components:</p>
    <p>•  test letter</p>
    <p>•  test I report(s) blinded or unblinded based on your access.</p>
    
    
    
    
    </body>
    </html>"

  • 0
    Certified Lead Developer
    in reply to ashwinir5622

    It looks like you are just creating the URL without wrapping it into a <a> HTML tag.

  • 0
    Certified Senior Developer
    in reply to ashwinir5622

    "<!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <p>Dear Colleague(s),</p>
    
    
    <p>Sanofi investigators should be notified of any " & ri!id & " through 'test' (test).</p>
    
    <p>This e-mail informs you that DIL files issued have been newly posted in the DIL Electronic Portal.</p>  
    
    <p>The following IMP product(s) had a DIL posted today.</p>
    
    <style>
    table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    }
    </style>
    <table>
    <tr>
    <th>Product</th>
    <th>Link to test</th>
    </tr>
    " & 
    a!localVariables(
      local!studyId:rule!DIL_test(studyId: ri!test),
    
      a!forEach(
        items: local!studyId,
        expression: "
    <tr>
    <td>" & fv!item[recordType!test.field]&" "&
    "(Product Code: "&fv!item[recordType!test.field]&")"&" "&
    "(Case Id: "&rule!APN_distinct(ri!id)&")"
    & "</td>
    <td>" & 
    a!forEach(
      items: ri!id,
      expression: "<a"&a!urlForSite(
        sitePage: application stite page,
        urlParameters: a!map(
          product: {
            rule!DIL_test(
              id: fv!item
            )
          },
    
        )
      )&
      "</a>"
    )
    & "</td>
    </tr>
    "
      )
    )
     & "
    </table>
    
    <p>Please provide any feedback to the generic mailbox ash@sanofi.com</p>
    
    <p>To generate a complete ttest file, you have to download each of the following components:</p>
    <p>•  test letter</p>
    <p>•  test I report(s) blinded or unblinded based on your access.</p>
    
    
    
    
    </body>
    </html>"

    you have missed the tag as Stefan also mentioned

  • 0
    Certified Senior Developer
    in reply to Konduru Chaitanya

    Hi  &  

    Even though i update the as same as Chaitanya still it is not showing as Link 

  • 0
    Certified Lead Developer
    in reply to ashwinir5622

    Sure. A proper link in HTML looks like this:

    <a href="YOUR_URL_GOES_HERE">Link Label</a>

  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    Hi Stefan,

    Thanks for the Update, It worked. And i have one more doubt that on click of the click it should open the page in new tab will that possible in a!urlForSite() function

  • 0
    Certified Lead Developer
    in reply to ashwinir5622

    A HTML link supports that OOTB.

    Add this: 

    target="_blank"
  • +1
    Certified Senior Developer
    in reply to Stefan Helzle

    Thanks for the Guidance