Skip to main content

So i have a JS via datalabel: 

var offset = new Date().getTimezoneOffset();

 

Then i write it into my textbox:

document.getElementById('000000*personal details removed*0000_59e39e2b-5feb-87d4-ab3e-525f96384c6f').innerHTML=offsetname;

 

I can see the value successfully in the textbox.

 

Then i created a rule like - if textbox is changed show me message. But i never see the message. It works only if i change textbox value manually.

 

So the question is - how can i transfer a string variable generated on client-side into server-side?

Hi,


 


For Text Box control:


 


$("[name='Text Box']").SFCTextBox('option', 'text',offsetname);

For Data Label:


 


$("[name='Data Label']").SFCLabel('option', 'text', offsetname);

HTH


 


Thank you! It works!

 

<script>
var offset = new Date().getTimezoneOffset();
var offsetname = Intl.DateTimeFormat().resolvedOptions().timeZone;
$(";name='Text Box 5']").SFCTextBox('option', 'text',offset+' '+offsetname);
</script>

 

Then make rule for textbox changing and use its value.


Reply