Skip to main content

#HTML0 discussing

Hi DataFam,

 

I have a column 'X' in my dataset, the data in 'X' is of HTML and normal text type. I want to show normal text for the column in the summary table visualization. How to convert HTML data to normal text in Tableau?

 

#html #tableau ⌗visualization ⌗data

 

Thanks in Advance,

Akshara.

9 answers
  1. Jan 31, 2023, 8:55 PM

    So, the calculation is modified only slightly to account for the = or # characters.

    REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE([Unclear Data],CHAR(10),''),'(\d{4}:)',''),'<.*?>|&.*?;|[=]|[#]',' ')

    And it returns this when I modified the original data set:

    So, the calculation is modified only slightly to account for the = or # characters.REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE([Unclear Data],CHAR(10),''),'(\d{4}:)',''),'<.*?>|&.*?As to usage of CHAR(10) and '(\d{4}:) - you have at least one occurrence where there's a carriage return in the string but not all of the strings have them. CHAR(10) is the code that represents a carriage return. So, the first (most inner) REGEXP_REPLACE looks for that carriage return (which is not visible) and eliminates it so that the end part of the calculation works. For the capture group of (\d{4}:) in the second REGEXP_REPLACE it is used to remove those 4-digit (not letters) instances that you had in the very first row of the data example. There were a number of items like 1234: or 5678: etc. The capture group looks for just 4 digits, starting from the colon and then removes them. The very last REGEXP_REPLACE, the outer one, is doing all the heavy lifting. In Regex, the pipe | symbol is an 'or' operator. So that last piece '<.*?>|&.*?;|[=]|[#]' has four different patterns for the regex engine to look for and eliminate. The first one looks for HTML tags, the second one looks for any string values between the & and ; the last two are your most recent need and it's just simply [=] | [#] Hope that helps! Best, Don

0/9000

Built my first experience site (hooray!) and our web team is asking me to add some code to the head and just after the first body tag of a particular page for Google Analytics. They provided the code.   

 

 Total newbie here....how do I do that?

 

I see where I can edit the header, but what about the body tag portion?

 

#Experience Cloud #HTML?

3 answers
0/9000

We use Litmus to view our email builds and I keep seeing these serious failures. We are using content builder, so the HTML templates is not allowing me to change the header details. How can I resolve this in my templates without switching to full HTML?

 

  • Document does not have a non-empty <title> element
  • The <html> element does not have a lang attribute

2 answers
  1. Mateusz DÄ…browski (mateuszdabrowski.pl) Forum Ambassador
    Nov 21, 2023, 8:20 PM

    You can change the template HTML on the Email Template (not Template-based Email) level and the leverage it then in your emails built with content blocks.

0/9000

Hello all,

 

I'm trying to figure out why I'm having issues with Files (saved in Salesforce) showing up within our Community. I can link PDFs just fine when tagging the HTML to open in the same or new tab, but I'm trying to have an image serve as a clickable button to proceed to one of our pages and the link keeps coming up as broken. I've gone ahead and made Public Links for all the images and PDFs in Salesforce to reference in my code.

 

**I'll preface by saying I'm by no means a programmer and have fairly basic knowledge of HTML coding.

 

Here is the code I'm using:

<a href="CopyrightDisclaimerPageURL" target="_self">          <img alt="School Program Cover" src="FileName"          width="200" height="200" style="border:3px solid black;" hspace="10">          </a>

 

Here is the end product with the image not appearing:

Broken Salesforce File links in the HTML Editor component in Experience Builder

 

Any assistance would be greatly appreciated!

 

#Partner Community #HTML@* Experience Cloud *

31 answers
  1. Sep 30, 2022, 9:22 PM

    @Matt Magnani the above URL you provided:

    https://firsttee--c.na82.content.force.com/sfc/servlet.shepherd/version/renditionDownload?rendition=SVGZ&versionId=0681R00000Zdd0n&operationContext=CHATTER&contentId=05T1R00001oBKnw&page=0&_ga=2.111130241.545058177.1664217790-629601125.1656532094

     

    Is not a URL for a content asset download.  This looks like the URL we would use to preview a file, as it's the SVG rendition.

     

    You can get your organization Id by going to setup > company info and it's on that page starting with 00D

     

    Can you please try this test:

    In LEX, go to the Files tab > asset library > create new asset > give it an api name and remember this name > check the box to make the asset available to guest users (i.e. public).

     

    Also, while on the Files tab, please copy the URL as this will contain your org's domain (including the mydomain name)

     

    Once this is done and the asset is created, in a new window can you try accessing the asset with this url format:

     

    https://<my_domain>.my.salesforce.com/file-asset/<asset_name>?oid=<organization_Id>

     

    In this example, asset_name is the API name used while creating the asset (there won't be spaces in it).  The orgId is found as mentioned above, and the org domain is what you would have copied from the Files tab.

0/9000

8 TOOLS, DIE JEDER PARDOT USER KENNEN SOLLTE

 

Was wäre die Marketingwelt ohne Tools? Obgleich Salesforce Pardot eine umfassende Marketinglösung ist, gibt es doch einige Tricks und Kniffe, die sich mit externen Tools besser bewältigen lassen. In diesem Beitrag stellen wir dir unsere Lieblingstools vor und erklären, was du damit tun kannst.

 

1. Return Path Sender Score

2. HTML Cleaner

3. HTML Emails in Plain Text konvertieren

4. Buttons für Eventable Events generieren

5. Pardot Trails

6. Pardot mit WordPress verbinden

7. Pardot Assets richtig benennen

8. Buttons für Emails und Webseiten  

 

Link: https://blog.content-moves.de/8-tools-die-jeder-pardot-user-kennen-sollte  

 

#Pardot #Pardot Email #Wordpress #HTML #TrailblazerCommunity 

   

0/9000

Adding ,

 newDiv1Text += "<span class='highlightRed'>" + div1TextSplitted[wordNumber1] + "</span> ";

span class is not applying the css class to the text.

 

but ,

  newDiv1Text += "<span style = 'background-color :red'>" + div1TextSplitted[wordNumber1] + "</span> ";

is working .

 

I need the css to be applied to the text by not hardcoding. Please share your inputs 

 

#Salesforce Developer

1 answer
0/9000

Do i need to use <table> tag or something else. i want similar document using html.Can anyone assist.

 

#HTML

Want to divide text to 2 column format like the attached image

3 answers
  1. Jul 16, 2021, 10:38 AM

    Hello!

     

    Try providing following if first <td>:  

    <td style="padding-right: 10px">

     

    Hope this helps!

     

    Regards,

    Amey

0/9000

Any ideas on how to troubleshoot this Release Issue? Screen shot attached.

contains invalid HTML: <a> must have 'href' attribute.

 

Hi all, one of my colleagues figured this out (shout out Katie Royce) 

The warning "contains invalid HTML: <a> must have 'href' attribute. Ended up being due to a link created in Trailtracker that did not have the URL section filled out.

4 comments
  1. Jul 16, 2021, 10:40 PM

    Hi Andrew, I'm glad you were able to get to the bottom of this error! I hear you that this message should be more descriptive and give more explicit troubleshooting guidance. If there's any other errors you think could be improved, please let me know!

0/9000

IP Address(Textfield)

I want to set the default value in the IP Address field while the user is filling in details.

this is the code for web to lead form 

<html>

<!-- ---------------------------------------------------------------------- -->

<!-- NOTE: Please add the following <META> element to your page <HEAD>. -->

<!-- If necessary, please modify the charset parameter to specify the -->

<!-- character set of your HTML page. -->

<!-- ---------------------------------------------------------------------- -->

<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">

<!-- ---------------------------------------------------------------------- -->

<!-- NOTE: Please add the following <FORM> element to your page. -->

<!-- ---------------------------------------------------------------------- -->

<form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

<input type=hidden name="oid" value="00D5g0000063ogS">

<input type=hidden name="retURL" value="http://www.google.com">

<!-- ---------------------------------------------------------------------- -->

<!-- NOTE: These fields are optional debugging elements. Please uncomment -->

<!-- these lines if you wish to test in debug mode. -->

<!-- <input type="hidden" name="debug" value=1> -->

<!-- <input type="hidden" name="debugEmail" -->

<!-- value="harshal.khadke@proseraa.com"> -->

<!-- ---------------------------------------------------------------------- -->

<label for="first_name">First Name</label><input id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>

<label for="last_name">Last Name</label><input id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>

<label for="email">Email</label><input id="email" maxlength="80" name="email" size="20" type="text" /><br>

<label for="company">Company</label><input id="company" maxlength="40" name="company" size="20" type="text" /><br>

<label for="city">City</label><input id="city" maxlength="40" name="city" size="20" type="text" /><br>

<label for="state">State/Province</label><input id="state" maxlength="20" name="state" size="20" type="text" /><br>

<label for="lead_source">Lead Source</label><select id="lead_source" name="lead_source"><option value="">--None--</option>

<option value="Web" selected>Web</option>

<option value="Phone Inquiry">Phone Inquiry</option>

<option value="Partner Referral">Partner Referral</option>

<option value="Purchased List">Purchased List</option>

<option value="Other">Other</option>

</select><br>

Sub Source:<select id="00N5g00000IO2Lj" name="00N5g00000IO2Lj" title="Sub Source"><option value="">--None--</option>

<option value="Marketing" selected>Marketing</option>

<option value="Channel Partner">Channel Partner</option>

</select><br>

<script src=

"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">

</script>

<script>

/* Add "https://api.ipify.org?format=json" statement

this will communicate with the ipify servers in

order to retrieve the IP address $.getJSON will

load JSON-encoded data from the server using a

GET HTTP request */

$.getJSON("https://api.ipify.org?format=json",

function(data) {

// Setting text of element P with id

$("").html(data.ip);

})

</script>

</head>

<input Type="Hidden" id="00N5g00000IOJXR" maxlength="20" name="00N5g00000IOJXR" size="20" type="text" value=""/><br>

<input type="submit" name="submit">

</form>

</html>

#HTML  #Javascript  #Web-to-lead Form  #Web-to-lead  #Service Cloud

5 answers
0/9000

Hi,

 

We have linked a contact form on the website to Salesforce. When a request comes in via this contact form, a case is created. For this purpose, an email template was created, which is to be forwarded to the corresponding teams. Is there a possibility for an if condition, where certain fields which are not being filled in are hidden when forwarding?   The HTML code looks like this: 

 

Customer First name: {!Case.CP_Web_First_Name__c}

Customer Lastname: {!Case.SuppliedName}

Email: {!Case.SuppliedEmail}

Subject: {!Case.Subject}

Inquiry concerns: {!Case.cx_inquiry_concerns__c}

Inquiry Text: {!Case.Description}

  

Further information

Street: {!Case.CP_Supplied_Street__c}

PostalCode: {!Case.CP_Supplied_ZIP_Code__c}

City: {!Case.CP_Supplied_City__c}

Country: {!Case.CP_Supplied_Country__c}

Company: {!Case.SuppliedCompany}

Position: {!Case.CP_Supplied_Position__c}

Phone: {!Case.SuppliedPhone}

 

Inquiry originally sent to: {!Case.Origin}

 

#Email  #Send Email  #Email Template  #Template  #Lightning Email Template  #HTML Email  #HTML  #Classic Email Template

1 answer
  1. Jul 6, 2021, 3:19 PM

     Try something like below

     {!IF (NOT(ISBLANK(Case.SuppliedEmail), " Email: {!Case.SuppliedEmail} ","" )}

     

    Mark this as best if helps

0/9000