Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide "Value" Field from Select>Option #793

Closed
christiansum opened this issue Aug 10, 2018 · 2 comments
Closed

Hide "Value" Field from Select>Option #793

christiansum opened this issue Aug 10, 2018 · 2 comments

Comments

@christiansum
Copy link

Description:

I need to hide "Value" of options, but when I add this attribute not working.
Actually I was hide "Name" Field for Select.

typeUserAttrs: { 
	select:{ 
		name: { 
			label:' ',
			style:'display:none;'
		}, 
		options: { 
			value: {
				style:'display:none;' 
			}
		}
	}
}

Do you have an example how to do this ?

Environment Details:

  • formBuilder Version: 2.9.8
  • Browser: Chrome
  • OS: Windows

Expected Behavior

Hide "Value" field from select>options

Screenshot

Image of Yaktocat

@simon-hevs
Copy link

I did this in css, and made the label larger to take up the width

.option-value {
    display: none;
}

.form-wrap.form-builder .frmb .sortable-options input[type=text] {
    width: calc(90% - 17px);
    margin: 0 1%;
    float: none;
}

@christiansum
Copy link
Author

Perfect! & Thank You for your support :)
Works fine !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants