Skip to main content
16-Pearl
August 21, 2025
Solved

How to Preserve Textfield Values When Navigating Between Contained Mashups

  • August 21, 2025
  • 2 replies
  • 1009 views

Hello,

  i have this center one below a contained mashup which i am switching among 3 mashups so each mashup has textfields to fill. my question is when i write something in textfield then  i click next and get another mashup and now if i go back to previous mashup then the values which i filled in it would be gone obviously its removing the mashup and loading new one. 

 

i am thinking to achieve this task now to have four containers with each mashup in it and do visible invisible on them and then the values would stay or have four contained mashups in four containers and do invisible visible on them.... i am asking this query to know more about the resolution of this usecase.. any suggestions are welcome..

 

 

MA8731174_0-1755778540331.png

 

Best answer by Constantine

Hello,

 

I assume you pull those textbox values to the outer mashup and consume them there somehow? Then the easiest solution would be to use bi-directional bindings, and reset the contained values to what you get in the outer mashup.

 

Other options include 

  • Initialize contained values from a user session
  • Use tabs widget
  • Hide/show contained mashups as you suggested
  • Cram all your inputs into the same mashup and hide/show individual widgets based on your "wizard step"

 

All of those have pros and cons. By default I'd go with what you're doing + bi-directional bindings.

 

Initializing those values from user session would be the easiest to implement, but sooner or later you'll get into the discussion "I want my users to be able to do it in two browser tabs at the same time".

 

/ Constantine

2 replies

18-Opal
August 21, 2025

Hello,

 

I assume you pull those textbox values to the outer mashup and consume them there somehow? Then the easiest solution would be to use bi-directional bindings, and reset the contained values to what you get in the outer mashup.

 

Other options include 

  • Initialize contained values from a user session
  • Use tabs widget
  • Hide/show contained mashups as you suggested
  • Cram all your inputs into the same mashup and hide/show individual widgets based on your "wizard step"

 

All of those have pros and cons. By default I'd go with what you're doing + bi-directional bindings.

 

Initializing those values from user session would be the easiest to implement, but sooner or later you'll get into the discussion "I want my users to be able to do it in two browser tabs at the same time".

 

/ Constantine

12-Amethyst
August 26, 2025

Hi @MA8731174 

It appears that this post may answers your question.  For the benefit of other Community Members who may have the same question, it would be great if you could designate it as the Accepted Solution.

In the event that this response did not answer your question, please post your current status so that we can continue to support.

Thanks for using the PTC Community!

Regards,
Abhi