Skip to main content
Inspiring
September 2, 2020
Answered

Dynamic text

  • September 2, 2020
  • 2 replies
  • 1310 views

Is it possible to make dialog box to have dynamic text that update depending on field value? 

This topic has been closed for replies.
Correct answer Nesa Nurani

It will be just some info text with ok cancel buttons, but part of the text need to be updated depending on value in another field. 


Depending on what you actually want this can be really simple or complicated.
If you just want part of the text in dialog box to change depending on another field value,
make hidden textfield and put calculate code in it to change text depending on that other field value.
Then where you have dialog box code (before code) make variable that point to hidden field that have text that you want,
then where you normaly put text in dialog box just add variable name and thats it.
example: {type: "static_text", name: "Here goes your text"+variable name,},
Also if you use same button to change textfield value make sure to put that code before dialog box.

2 replies

Participant
May 18, 2022

Hi,

I had a problem when I tried to convert 1 PDF file to excel, and the result showing

not in numbers. How to shoot the problem?

 

 

 

try67
Community Expert
Community Expert
May 18, 2022

This has nothing to do with the question you posted under. Create a new thread, and provide the full details of your issue.

try67
Community Expert
Community Expert
September 2, 2020

Only if that text is part of an editable text field. You can't update the static text in a dialog once it's displayed.

You can close that dialog and then re-open it and display the new text, though.

blazbAuthor
Inspiring
September 2, 2020

Thats what I need. I have some basic knowledge on dialog box and javascript, can you give me some advice what to look for? 

try67
Community Expert
Community Expert
September 2, 2020

Which option do you want to implement? This is quite a complex task, especially closing and then re-opening the dialog object, without losing all the data already entered into it...