Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unable to increase left indent/margin on drop-down list value (not label)

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

28-04-2015

Hello,

Why is it that I cannot increase the left margin for the value portion of drop-down fields?  Just to clarify, I'm not trying increase the left margin in the Layout tab of the object, but the left indent or margin of the value being selected in the drop-down list.  The text is right up against the left side of the drop-down box, as you can see in the first image below, where Advocacy" is.   When I go into Paragraph formatting, the Left indent that cannot be increased from zero.  Any help is appreciated.


temp.png


temp2.png


Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

28-04-2015

you can also trick it. This seems to work. Set the field as a text field and set the indent. Then go to Object Field Type and change it to a Drop-down list. This seems to maintain the indent.

Answers (4)

Answers (4)

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

28-04-2015

Great trick!  It worked.  The only problem was repopulating the drop-down items, cause all that gets lost when you change the field type.  So what I did was copy the field as is, then paste into Word, which brings a bunch of XML with it.  From there I grabbed the text I needed to regenerate the list and used the clipboard button in the LC Object panel to import them back in.

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

28-04-2015

Hi there,

Never noticed that there was problems with drop down lists..

I looked upon it and realised you can only set the leftInset for the Caption value in the Paragraph tab

If you want to set a margin for the inside box : e.g. (Advocacy in the image above) you have 2 different ways to do this

1.

Go in the XML Source of the drop down list

Look for the node <choiceList>, and insert a margin node, see below

OR

2.

On a JavaScript event (e.g.: initialize)

this.ui.choiceList.margin.leftInset = "1.27mm";

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

01-05-2015

After digging a little deeper, I noticed that using your trick made a change to the Initialize event of the field, adding this script:


this.margin.leftInset = "0.02in";


I thought it would be worth noting for future readers.  In my case, I went and "tricked" about ten fields; next time it'll be easier, knowing I can just use this script.

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

28-04-2015

I did this and it didn't work for me, sorry.