I have a similar problem as this one, I think: https://kriesi.at/support/topic/java-script-added-to-code-block-wont-publish/
I have a form on this page: http://techsavvysolutionsgroup.com/submit-a-ticket/
Right now it works fine, and if I edit the page, the code is there, but I have to update the url. It is a form using this code:
<form>
email <input type="text" id="email">
password <input type="password" id="password">
<button type="button" onclick="login();">Login</button>
<script type="text/javascript">
function login() {
var companyId = 'tsg5'; // <-- INSERT YOUR COMPANY ID HERE
var email = escape(document.getElementById('email').value);
var password = escape(document.getElementById('password').value);
var url = 'https://na.myconnectwise.net/v2015_4/services/system_io/customerportal/portal.html?company=' + companyId + '&txtemail=' + email + '&txtpass=' + password;
window.location.assign(url);
}
</script>
</form>
the ‘var url’ needs to be updated. The example above has the new code.
When I paste that in, I cannot save it. Clicking the save button does nothing. If I remove the form code, it saves no problem.
I don’t think I can save this in another directory as requested in the first example as it is a form and must appear here.
Thanks for your help.
-Fred
Hey Fred!
Are you sure it’s in a codeblock element? Send us a link to the page and a WordPress login and we’ll take a look.
Make sure your using the latest version of Enfold, 3.2.3, and that all plugins are deactivated while testing.
Regards,
Elliott
Ah. That was it! It was in a Text Block element, not a Code Block element. That fixed it! I guess I didn’t think about it like that because it was working previously before in a a text block.
Thanks so much!
-Fred