Problem - Dynamically Changing Titles

I have set up actions that changes the title of a chapter with the appropriate variable. The text box for the title is set up for the correct font, size (14) and text color (white). However, when the action to put the title (contents of the appropriate variable), the text in the textbox is the correct font, but the size is 10 and the color is black. So in order to have the "new" text match, I placed a period in the textbox. This seems to work. However, when published to html, one sees the "placeholder" first, then the correct text. So the question - is there any way to do this so that the "placeholder" text is not seen???? Possibly using Javascript?????

Discussion (7)

bit of a clunky possible workaround.......


i guess that 10 pt black is what your default font is for the title. what if you changed this default to whatever font you want this dynamic box to be? (and don't select that it auto-updates all default text boxes when you do it).


every new regular text box that you add after this would take on this font though so you would have to change them to whatever your desired regular font is - though that is easily done by using the text styles drop-down. or by using a box copied and pasted from another page.

does it not work by just using a formatted space instead of a period?

mallow76;62321, timk;62322


Thank you both for the suggestions.


mallow, I'll try your suggestion in creating a text style and apply it only to the title.


timek, I tried what you suggested and the textbox was not populated until it became visible.

@mallow76 62319 wrote:

does it not work by just using a formatted space instead of a period?


When I use the formatted space, the text is the same font but 10 point and black.

I usually insert a default text into the textfield like "Loading chapter...". Easier to format than a single blank and no problem if it's visible.


You could try to make the textfield initially hidden and show it "On: Page show" with a short delay.


Tim

@sjones 62323 wrote:

I tried what you suggested and the textbox was not populated until it became visible.
I find this hard to believe. I just tried the following:

- create a text box, enter a couple of dots in it, format to what you want (font-color-size)

- set the box to "initially hidden"

- add two actions on the PAGE:

--- on Show > Change Contents > "new text"

--- on Show > Show object > text box


As a result, the page loads, the text box is first populated with proper text, and then displayed. No issues, worked like a charm.

@ssneg 62360 wrote:

I find this hard to believe. I just tried the following:

- create a text box, enter a couple of dots in it, format to what you want (font-color-size)

- set the box to "initially hidden"

- add two actions on the PAGE:

--- on Show > Change Contents > "new text"

--- on Show > Show object > text box


As a result, the page loads, the text box is first populated with proper text, and then displayed. No issues, worked like a charm.



ssneg,


Thanks. It is working like a charm. For some reason, I did not think about making the textbox "initially hidden." I guess I was over thinking (or under thinking).


Thank you again.

Discussions have been disabled for this post