Hi,
I've seen a few discussions on how to pass template variable to the template page title by creating a user macro.
I do not have access to create a user macro and so my only option is to use an HTML include macro.
I'd like to pass a template variable to the template page title so that when creating a new page via the custom template, the page title is automatically populated based on the template variable value.
This is the code I tried using in the HTML include macro, but it doesn't pass the value to the page title (I got this after exploring other discussions).
<script>
$("input[name='variableValues.myCustomVariable']").change(function(){ console.log($(this).val()); $("form[name='filltemplateform']").find("input[name='title']").val($(this).val()) })
</script>
Any help is greatly appreciated.
Thanks.
N
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.