Preview In Studio Vs Preview in New Tab Issue

I have a function on a page attached to a button onclick that copies the name/address/email text values in a few of the text inputs to another set of text inputs on the page if clicked by user. It works fine in “Preview in studio” mode, but nothing copies in preview in new tab mode. The values are in a shared object, and they are to be copied to another shared object when “Copy” button is clicked. The function takes both objects as inputs, updates values in one of the objects with those in the other, then returns the target object. Works fine in Preview in Studio mode, but not in preview in new tab–nothing copies? Thanks for any ideas.

Hello Robert,

Did you try by previewing your application from the renderer? Clicking on the button:
image

Just tried it with no luck. Still works fine in Preview in Studio mode. Rebooted Server. No change.

Could you provide us a preview of your page or explain the process you used to make it? A quick video or screenshot would be very beneficial!

Okay, thanks for the screenrecord. I have a solution that could resolve your issue.

Instead of using a function, did you try to copy both shared objects by using standard action “copy”?

For example:

1 Like

Your solution works excellently and is lightening fast. (Note to Self: one of the standard actions is to copy a value from one source to another so no need to use function) Thx!

2 Likes