I’ve set up my database and have created a dynamic item page. However, the spacing between my text boxes is static. Is there a way for these to auto adjust, so regardless the character length of the text, it will remove empty space? Here is an example of what is happening.
We do not have support for this with the non-coding product. However, with a little coding it can be done easily - using the dataset onReady event and setting the value in a single text element. formatting the value in code.
Should look like the following
$w.onReady(() => {
$w('#DATASET').onReady(() => {
let item = $w('#DATASET').getCurrentItem();
let value = item.firstName + ' ' + item.lastName;
$w('#TEXT').text = value;
});
});
Is this the same technique you would use if you were composing an address book where the amount of content is variable? For example, not every entry might have a second line of address information, more than one email address/phone number, etc.
What’s the best option for expanding/collapsing horizontal and vertical space around elements that have no value or that have large values (that require pushing other elements out of the way)?
Hello, I love the new database. I have a dynamic page set up. One of my categories is a lengthy text article. I need a way to code the spacing in between paragraphs with in the text. Thanks for your help.