Copy link to clipboard
Copied
Is it possible to make dialog box to have dynamic text that update depending on field value?
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thats what I need. I have some basic knowledge on dialog box and javascript, can you give me some advice what to look for?
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you I tested it and it's working.
Copy link to clipboard
Copied
"Only if that text is part of an editable text field."
How would I do that? I want to have open dialog box with button to change textfield value and field inside dialog to update text while still open.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
This has nothing to do with the question you posted under. Create a new thread, and provide the full details of your issue.