-
-
·
LeonidS
- ·
Hello @Tajrebatee !
This field is a system field and can't be made mandatory with the Studio tools. You may set the block with the Javascript code which will check the length of the labels and prevent the submitting the form.
-
·
LeonidS
-
- · Ξx¢ΞL 2
-
·
In reply to LeonidS
- ·
What i miss under Labels is, that u can´t translate them in other Languages :(
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Hello, I asked the same question here:
https://una.io/view-discussion/how-to-make-the-label-field-mandatory
@LeonidS Please Could you help by posting the Javascript code you are talking about which will check the length of the labels and then prevent the form from being submitted? Thanks
-
@LeonidS agree. that will be appreciated.
-
-
·
LeonidS
-
·
In reply to Ξx¢ΞL 2
- ·
The Labels thing is the same as the hashtag. So it can't be translated...
-
·
LeonidS
-
- · OneEagle
- ·
Please @LeonidS, Any news on the Javascript code? Thanks in advance.
-
ditto
-
- · Ramdoni abdullah
- ·
Any news for the javascript code ?
-
-
- · OneEagle
- ·
Yeah, since then we have been waiting @LeonidS
-
-
·
LeonidS
- ·
Here is the simple code for Posts to inform the user with the text alert about the empty Labels field. It is bound to the Title field's changes. You may expand it more if you need more conditions.
</em></p><p><em>$(document).ready(function() {</em></p><p><em> $("#bx_posts input[name='title']").change(function() {</em></p><p> <em>var oLabels = $("#bx_posts input[name='labels[]']");</em></p><p><em> if (!oLabels.length) {</em></p><p><em> alert("bad");</em></p><p><em> }</em></p><p><em> });</em></p><p><em>});</em></p><p><em>
-
·
LeonidS
-
Great. Where to put this code?
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Hi @LeonidS
Thanks for the code. Is this for posts only? What about labels on the Profile page and other modules like Ads, Groups, Forum etc. Rather than having a module-based change, we should think on a global solution (entire website). Thanks
-
To the "New post" page via the Pages app.
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
You may try to put it on any "Create entry" page without # bx_posts word.
-
·
LeonidS