replied on October 18, 2022
$(document).ready(function (){
// change event is probably better than blur since it covers more
// scenarios and won't fire when no actual changes were made
$('#q2 input').change(function(){
// jQuery equivalent of what you had before
// $(this) is whatever element triggered the change event
// so there's no need to use the full selector again
$('#vName1').html($(this).val());
});
// check/retrieve the value on load to handle saved form
// or values that were populated in a previous step/task
var vName = $('#q2').find('.cf-field :input').val() || $('#q2').find('.cf-field div[type]:eq(0)').html() || '';
$('#vName1').html(vName);
});
By signing below, I, <span id="vName1"></span>, certify that:
Javascript Code and HTML Code
This works flawlessly on prem but does not work in cloud. I've even simplified the code to be "var vName = 'Test';" just to set the variable and it does not set either. I've added "alert(vName)" as well in the code to see if it even alerts in cloud on the Thank You page and it does not (it does alert on the Thank You page on my prem system) so my thought is that scripts do not run in cloud after submit or before repository creation. When I look at dev tools I do see the script section and I do see the code on both prem and cloud and it looks VERY similar so maybe its just a new nuance idea I'm not aware of.
Thanks for the reply and help!