The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Request: add custom...
 
Notifications
Clear all

Request: add custom class input field for all fields when using the form editor

5 Posts
2 Users
0 Reactions
1,057 Views
AdamTheForumUser
Posts: 84
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago
[#1857]

This would be really useful so that an install can quickly inherit the styles of a theme's general CSS.


4 Replies
Asti
Posts: 8225
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

@adamtheforumuser,

Don't follow you well. Each filed created by you has it's own class and ID. See the example shown in the screenshot: 

image

Reply
AdamTheForumUser
Posts: 84
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago

What I was requesting was that in the form creation, you can define a css class.   Then that CSS class would be added to the class attribute on the field when it is rendered.

This would have the advantage that you can use existing css classes and make zero changes to your css.

For example, you have a class existing in your website called .btn that does lots of styling to buttons.   In the form creation interface you'd then add "btn" as a custom class and as if by magic with no site code changes required the buttons on the form would then inherit the standard button style. 

 


Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8225
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

You can do it using jQuery .addClass() function. 


Reply
AdamTheForumUser
Posts: 84
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago

Yes sure.  It was just a request to have this in your interface for someone that doesnt want to/know how to do it in code.   Ie someone that literally wants to just install the plugin and get it setup using existing CSS classes very quickly with no coding required.


Reply