Hide options in a select field - [Solved]

More
14 years 6 months ago #17777 by ggppdk
Yes of course you can use CSS to hide options

If you use Javascript (Javascript runs inside the user's browser, after page is downloaded) to hide something, it can be done by either removing the html code of the select options completely out of the html document model or by hiding the select options by setting the style (CSS) property of them ...

But to hide options you must first attach some CSS class to them at creation time (PHP). But if you are able to attach CSS class to them, then it is easier not to output them in the first place. So we come back to the problem that i described in my previous message.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17781 by aloisio
Hello
You tell me just add css to create the menu item, it not works.
Well I'd like to try.
I've only managed to completely hide the field, but not the options individually.
Using javascript I've also got, hide choices, but I do not think you can add javascript and css is added, the menu item.

Regards

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17783 by ggppdk

If you use Javascript (Javascript runs inside the user's browser, after page is downloaded) to hide something, it can be done by either removing the html code of the select options completely out of the html document model or by hiding the select options by setting the style (CSS) property of them ...

But to hide options you must first attach some CSS class to them at creation time (PHP). But if you are able to attach CSS class to them, then it is easier not to output them in the first place. So we come back to the problem that i described in my previous message.

Alosio,

You cannot hide some options of the select field with css unless you have a way to decide which must of them must be hidden. You say to use CSS, if so, you need to have them assigned a class at creation time.

If you are able to mark some options with a CSS class to hide them completely, for the full lifetime of the current page. THEN WHY output them in the first place ???????

Either way you have to mark them at creation time, otherwise if you do not mark the select options with some css class, then you javascript code must make database queries to find out which option to hide and then hide them.

I think i have been very cleared and detailed on this one.

Best Regards :-)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17789 by aloisio
Hello

You cannot hide some options of the select field with css unless you have a way to decide which must of them must be hidden


The field options "select" to be hidden to each user are preset and are always the same.

Regards

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17803 by ggppdk
Exactly, this is the first step , to find which options should be seen by who.

Then the next 2 steps, are what i described in my previous post.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17807 by aloisio
I ask forgiveness.
You're giving me many important explanations.
I've already read several times what you escriste but I can not translate your words into action.

Regards

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17809 by ggppdk
Alosio, what i described above, you cannot implement without being a developer.

I was only explaining how it can be done.

You are trying to build a custom solution without being a developer, you will meet more things like this.

You must examine other alternatives, based on the capabilities of joomla and Flexicontent and other extensions, you have available.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17810 by aloisio
Please see your PM.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #17814 by micker
contact netassopro for this !
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save