• Ever wanted an RSS feed of all your favorite gaming news sites? Go check out our new Gaming Headlines feed! Read more about it here.
  • We have made minor adjustments to how the search bar works on ResetEra. You can read about the changes here.

Dalek

Member
Oct 25, 2017
38,984
I haven't delved into any web design in over a decade sadly-but I'm building something out as a test for my job and I wanted to build a site that's separate from our own company site for a presentation

Long story-I have an HTML snippet/form that I want to test for "web to Case" submissions. Salesforce spits out an HTML snippet for us to stick on an existing webpage.

From what I've seen Wordpress won't let you insert HTML snippets-unless you pay for a business plan to install certain Plugins.

Is there a simpler way to do this?
 

thetrin

Member
Oct 26, 2017
7,655
Atlanta, GA
If you have a friend with a server (or at least with a domain on server space), you can just put the HTML page up there. You just need FTP access to upload it.

Additionally, if you have a company site already, you could just make a new HTML, upload it to the company's site server space and test from there.

Either ask the IT dept for FTP access, or if you can't do that, ask them to upload the file and send them the HTML file via mail.
 

collige

Member
Oct 31, 2017
12,772
Depending on the snippet, you might be able to just save it as an HTML file and just open it in a browser.
 

Saganator

Member
Oct 26, 2017
7,096
Haven't used it but 5gbfree.com might do the trick.

Mainly posting to say hello to a fellow Salesforce admin. Hello!
 

Stanng243

Member
Oct 25, 2017
1,245
You can use github to make a free webpage, but the code will all be public unless you pay for a private account.
 

AvernOffset

Member
May 6, 2018
546
If it's just a test, do you even need a real website? Can you get away with just running everything locally? If you don't need a backend, it's as easy as tossing your files into a folder together and running from your browser. It would be more complicated if you need a backend, but running locally should still be doable.
 
OP
OP
Dalek

Dalek

Member
Oct 25, 2017
38,984
Depending on the snippet, you might be able to just save it as an HTML file and just open it in a browser.

This is such a simple, easy answer I can't believe I didn't even think of it. This should work for my testing-otherwise I'll use 5gbfree if we need to do a more elaborate presentation I think.
 

Saganator

Member
Oct 26, 2017
7,096
Hello as well! We should start a Salesforce Admin hangouts. ;)

Thanks everyone-will try these suggestions...
Ha! I wish there was enough of us for that to be viable.

Btw you might already know this, but you'll probably be disappointed with web to case functionality, unless you have a tiny support team. Communities is much more powerful, but it's expensive.
 
OP
OP
Dalek

Dalek

Member
Oct 25, 2017
38,984
Ha! I wish there was enough of us for that to be viable.

Btw you might already know this, but you'll probably be disappointed with web to case functionality, unless you have a tiny support team. Communities is much more powerful, but it's expensive.

Yeah for sure. We are going to be implementing Communities for our customers in the future, but I had someone asking for an easy way to submit Cases to a group of our users. The people submitting the Cases might not be Salesforce licensed users, so we wanted a way for them to chuck something over the fence. I'm setting up an Email to Case demo and a Web to Case demo to show the requester the pros and cons of both.
 

Supervizzle

Avenger
Oct 27, 2017
95
Maybe Silex might do the trick. It's essentially a WYSIWYG website editor, meant to create small websites with a few pages. Might be good for testing?
 

Saganator

Member
Oct 26, 2017
7,096
Yeah for sure. We are going to be implementing Communities for our customers in the future, but I had someone asking for an easy way to submit Cases to a group of our users. The people submitting the Cases might not be Salesforce licensed users, so we wanted a way for them to chuck something over the fence. I'm setting up an Email to Case demo and a Web to Case demo to show the requester the pros and cons of both.
Lucky! I tried to get Community for our company but the CEO is cheap. I played around with setting up a Community and it was actually kinda fun. Good luck with your demos!
 

The Albatross

Member
Oct 25, 2017
39,054
There are hundreds of services that can help you achieve what you want here, but simplest case, you may not need any service to do this and can use what you have on your computer right now without really any experience with web technology:

If you're on Windows, open Notepad (Windows icon -> type 'notepad' or Accessories -> Notepad).

In notepad, copy the following snippet:

Code:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>

<!-- DELETE THIS ENTIRE LINE AND PASTE YOUR CODE HERE -->

</body>
</html>

Now, in the line beginning with <!-- ... -->, delete that whole line, start to finish, including the arrows, and paste in the code that your service is giving you.

Save this file (File -> Save / Save As), and save it to your desktop with the file name "test.html" or some other name that makes sense to you. Ensure that is has the .html extension, not .txt extension at the end.

Go to your desktop, double click it, and it should open in CHrome or whatever your default browser is.

(If it opened in another program like Notepad, the extension is wrong and you need to change it to .html. You can usually do this in NOtepad by opening the file, going to Save As, and in the file save dialog, change 'File type' to 'All' and then save it as a new file with .html at the end)

Caveats: SalesForce may require your website to be on a live server somewhere to test this functionality out... If it's just static HTML and static self-contained JavaScript it'll work where you can see your page in your browser, but if it requires some sort of two-way verification or some communication back to salesforce, not only will the form not function, it might not even display/render. It depends on the code you're adding in here and what the desired result is.

If this is the case, you can use a quick website testing tool like Glitch.com. GO to New Project -> Website. It'll open default static site, with a file editor. In the left side menu, click on the "index.html" file, and it'll look mostly like my snippet above. Paste your code anywhere in the body or if CC has instructions to paste it elsewhere, do that. THen click the 'Show' button in GLitch and it'll launch your page in another tab. Caveat on this: ConstantCOntact might add an API key or other private information in the code snippet they give you, they probably don't for front-end (e.g., html and JS pasted into a webpage), but they might. Just... be weary of that.

Caveat two: In my code example above... you really don't need 98% of that to try this, but ... it's the snippet that my code editor of choice provides when you tabcomplete the word doc... so it was easier for me to just copy all of it.

Caveat Three: If you're on a Mac you can do the same thing with Textpad or whatever the default text editor is.
 
Last edited:
OP
OP
Dalek

Dalek

Member
Oct 25, 2017
38,984
There are hundreds of services that can help you achieve what you want here, but simplest case, you may not need any service to do this and can use what you have on your computer right now without really any experience with web technology:

If you're on Windows, open Notepad (Windows icon -> type 'notepad' or Accessories -> Notepad).

In notepad, copy the following snippet:

Code:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>

<!-- DELETE THIS ENTIRE LINE AND PASTE YOUR CODE HERE -->

</body>
</html>

Now, in the line beginning with <!-- ... -->, delete that whole line, start to finish, including the arrows, and paste in the code that your service is giving you.

Save this file (File -> Save / Save As), and save it to your desktop with the file name "test.html" or some other name that makes sense to you. Ensure that is has the .html extension, not .txt extension at the end.

Go to your desktop, double click it, and it should open in CHrome or whatever your default browser is.

(If it opened in another program like Notepad, the extension is wrong and you need to change it to .html. You can usually do this in NOtepad by opening the file, going to Save As, and in the file save dialog, change 'File type' to 'All' and then save it as a new file with .html at the end)

Caveats: SalesForce may require your website to be on a live server somewhere to test this functionality out... If it's just static HTML and static self-contained JavaScript it'll work where you can see your page in your browser, but if it requires some sort of two-way verification or some communication back to salesforce, not only will the form not function, it might not even display/render. It depends on the code you're adding in here and what the desired result is.

If this is the case, you can use a quick website testing tool like Glitch.com. GO to New Project -> Website. It'll open default static site, with a file editor. In the left side menu, click on the "index.html" file, and it'll look mostly like my snippet above. Paste your code anywhere in the body or if CC has instructions to paste it elsewhere, do that. THen click the 'Show' button in GLitch and it'll launch your page in another tab. Caveat on this: ConstantCOntact might add an API key or other private information in the code snippet they give you, they probably don't for front-end (e.g., html and JS pasted into a webpage), but they might. Just... be weary of that.

Caveat two: In my code example above... you really don't need 98% of that to try this, but ... it's the snippet that my code editor of choice provides when you tabcomplete the word doc... so it was easier for me to just copy all of it.

Caveat Three: If you're on a Mac you can do the same thing with Textpad or whatever the default text editor is.

YEah I ended up just creating a test html file and I'm going to use it this way. If the team likes It I'll suggest they take the code and post it on their own hosted site.
 

Baka Sempai

Member
Oct 30, 2017
304
Looking over at the posts, seems like you were already provided with a simple solution but just an FYI (and for future reference) you can always upload an HTML file to the main wordpress directory, and make it a pseudo page accessible anywhere online.

Lets say for example you own"resetera.com", you can always upload an html page to the root directory and call it "demo-file.html"
then if you need to access it, you simply type the whole thing altogether "resetera.com/demo-file.html"

You can even create a directory/folder called "webtocase" and place the HTML file in there but it would make the URL a bit longer
because you'd need to type "resetera.com/webtocase/demo-file.html" but this will give you room to upload more HTML files if you need to do so and keep them somewhat organized.