Skip to main content
Nintex Community Menu Bar

Choice control formatting in Nintex Forms

  • February 18, 2015
  • 13 replies
  • 91 views

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
  • February 19, 2015

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.


Forum|alt.badge.img+3
  • November 1, 2016

Andrew,

Works great for the list form.

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

Any thoughts?


Forum|alt.badge.img+17
  • Nintex Partner
  • November 2, 2016

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


Forum|alt.badge.img+2
  • January 5, 2017

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


Forum|alt.badge.img+17
  • Nintex Partner
  • January 7, 2017

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.


kmccool
Forum|alt.badge.img+9
  • Scholar
  • March 8, 2017

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


kmccool
Forum|alt.badge.img+9
  • Scholar
  • March 9, 2017

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

thanks

Kassie


Forum|alt.badge.img+5
  • March 10, 2017

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

Thanks.


Forum|alt.badge.img+1
  • October 13, 2017

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

Forum|alt.badge.img+17
  • Nintex Partner
  • November 15, 2017

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.


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.


Forum|alt.badge.img+17
  • Nintex Partner
  • April 5, 2018

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.


Forum|alt.badge.img+7
  • Novice
  • February 20, 2019

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.