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
  • 0
    Certified Senior Developer

    Could you please share the code in the richTextValue parameter. What is the input that you are passing.

  • 0
    Certified Senior Developer
    in reply to Konduru Chaitanya

    Hi Chaitanya,

    The parameter contains the html Email body which is build on expression rule

  • 0
    Certified Senior Developer
    in reply to ashwinir5622

    Could you share the html temp?

  • 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

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

Children