Skip to main content
Nintex Community Menu Bar

Choice control formatting in Nintex Forms

  • Feb 18, 2015 12:57 PM UTC
  • 13 replies
  • 108 views
  • Translate All

Forum|alt.badge.img+8

Hi guys,

 

I am having a Nintex forms formatting 'issue' and was wondering whether someone already has a workaround. Very simple actually, it's about how Nintex Forms formats a choice control in case the text is too long to go on one line. Example of what it does and what I would like it to do:

formatting issue.jpg

Any awesome ideas?

 

I am using Nintex Forms 2013 On Prem, most recent release (2.5.0.0).

 

Glenda

13 replies

Forum|alt.badge.img+17
  • Nintex Partner
  • Feb 19, 2015 2:40 AM UTC

I found if you change the CSS class of

.nf-filler-control-inner label

and set display: inherit;

 

that it will put the text alongside the checkbox/radio button. Because it is set to inline-block it forces it to it's own line.

 

You could just put in your own class instead so that you do not accidentally overwrite other labels.

Translate

Forum|alt.badge.img+3
  • Nov 1, 2016 9:35 PM UTC

Andrew,

Works great for the list form.

When I display using the Nintex Form Web Part, text is still misaligned.

Any thoughts?

Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • Nov 2, 2016 3:32 PM UTC

That's interesting that it would be different. I wonder if the CSS class inheritance is changed when in the web part. Maybe trying to force an inline-block would help and not use inheritiance

Translate

Forum|alt.badge.img+2
  • Jan 5, 2017 10:45 PM UTC

I'm using Nintex Forms 2.9.0.0 and can't get this to work. I emailed Nintex support and they said it's because this thread is based on 2.5.

Anybody out there get this working on 2.9? Thanks in advance.

Gary

Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • Jan 7, 2017 2:38 AM UTC

Then the css classes have changed since. Thanks for the update. But I believe the same effect will work if you can apply an inline-block to the values.

Translate

kmccool
Forum|alt.badge.img+9
  • Scholar
  • Mar 8, 2017 6:24 PM UTC

Hey Andrew, 

I'm trying to follow your instructions, but the "set display: inherit;" portion is grayed out in my form designer. Is this a setting I should have my admin change so I can edit the display format?

200613_pastedImage_1.png

Thanks

Kassie

Translate

kmccool
Forum|alt.badge.img+9
  • Scholar
  • Mar 9, 2017 9:55 PM UTC

Never mind, I added the CSS to the form settings and it worked.

thanks

Kassie

Translate

Forum|alt.badge.img+5
  • Mar 10, 2017 5:04 PM UTC

We're using Nintex 365, App Version NFO 1.2.3.0. Is there a solution for this question for this app version?

Thanks.

Translate

Forum|alt.badge.img+1
  • Oct 13, 2017 3:17 AM UTC

Would that be something I just add to a new line 4 in the Custom CSS form setting?

/* Template styles */
.nf-form-input .nf-filler-control-inner, .nf-form-label .nf-filler-control-inner
{
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
}
.nf-form-input .nf-textbox-wrapper
{
left: 0px;
right: 0px;
}
/* Label styling for desktop layout */
.nf-form-label‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • Nov 15, 2017 5:34 PM UTC

I would add it above all these. That way it's your customization and easily control its reach. Try not to change the default unless you absolutely have to.

Translate

Forum|alt.badge.img

Andrew,

First, let me tell you I am brand new to Nintex Forms literally started working with it last week.

I am working on a form with Choice Options which are not aligning with the radio button.  I would like the option to align as shown in the green box. 

Choice radio buttome not nligning with text

I added the code you posted into the Choice Options Control Setting>Formatting>CSS Class and it still did not align properly.  did I not insert it in the correct place?

Cohice Options CSS.

Any assistance you can provide would be greatly appreciated.

Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • Apr 5, 2018 1:49 PM UTC

Sure William, welcome to the community! The CSS addition should be made in the Form settings, under CSS and not in the control settings. Leave the control settings to have the default class in place, I think it was .nf-form-input.

In the form settings, under CSS, you will see pre-existing setup. you can either change the existing classes or add new ones at the top by copy/paste what ‌ posted.

Translate

Forum|alt.badge.img+7
  • Novice
  • Feb 20, 2019 6:52 AM UTC

As an alternative to @andrewg's solution (which didn't work for me btw, and I'm using Nintex with SP16 on-prem), you can set the display property of the checkbox's label tag to inline instead of inherit. Also, instead of overriding the Nintex form classes, you can use or add your own class into the mix.

 

So starting with this default behaviour where long text does not wrap nicely alongside the checkbox:

 

117iA9FE4B40460E8D07.png

Add a new class to your Form Settings > Custom CSS:

 

.myclass label {
    display: inline;
}

Then specify this new class in your Yes/No control's CSS class attribute. You should now find the text displays alongside the checkbox:

 

119i99D2D093E40A583E.png

Hope this helps.

Translate