• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Required custom fields improvements

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Required custom fields improvements

    • Issue Tools
      • View Changes
    1. issueid=6156 January 28, 2021 6:58 AM
      expanserpb expanserpb is offline
      Junior Member
      Required custom fields improvements

      So I want a custom field users HAVE to use.

      First of all the fields section starts minimised and is at the bottom of the page. Not ideal, they all miss it.

      Then the error messages when trying to submit is: Please enter a value for field vw_custom_field_region_title

      Not the name of the field and not very use friendly.

      I guess I could change some of the templates to throw it up top and maximise it from the start?
    Issue Details
    Issue Number 6156
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 7 - Minor Features / Enhancements
    Affected Version 4.1.1
    Fixed Version 4.1.2
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 1
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 28, 2021 9:17 AM
      ACL ACL is offline
      Regular Member
      Quote Originally Posted by expanserpb
      First of all the fields section starts minimised and is at the bottom of the page. Not ideal, they all miss it.

      Then the error messages when trying to submit is: Please enter a value for field vw_custom_field_region_title
      Yes, this is annoying. I experienced this on the VW.org XF demo wiki while editing an old template page with the last revision occurring before custom fields were implemented.

      Perhaps the simplest fix is to expand only the sections that have required fields.

      If it can not be conditionally expanded, then perhaps the error message could specify the section? "Please enter a value for 2 required above the content fields: topfield, quality." Although if I am honest, this doesn't seem like a great approach.

      Perhaps there is a more elegant solution, but I am not sure what that might be. I do not currently use VW custom fields on my own site nor have I really experimented with them.

      One last observation: When editing template pages, the RTE for custom fields is locked in BB code mode (the same as the page itself). Unsure whether this is per design or not.
      Reply Reply  
    2. January 28, 2021 2:01 PM
      expanserpb expanserpb is offline
      Junior Member
      It's so much more obvious for a Xenforo thread custom field:

      Reply Reply  
    3. January 28, 2021 3:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      Quote Originally Posted by ACL
      Perhaps the simplest fix is to expand only the sections that have required fields.
      This is the fix I have considered in the past. I would also like the section expanded if there is an error (such as if the user collapsed it), but I don't think it is possible to modify XenForo's error handler in that way. In that case, perhaps the error message should also specify the section.

      Quote Originally Posted by ACL
      One last observation: When editing template pages, the RTE for custom fields is locked in BB code mode (the same as the page itself). Unsure whether this is per design or not.
      That is because the custom field you saw is not for the template itself, but will be provided to other pages by the template. As such, the field uses template syntax, the same as the template itself. If the custom field normally has only certain options, the input's description explains how to go about handling that.

      It is possible to add custom fields to the template that are not provided to other pages (e.g. for info about the template), but this would be configured on the admin side.
      Reply Reply  
    4. January 30, 2021 4:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      In the next release, fixed the required field group being expanded only on new pages and pages where the field was recently assigned. This behavior has been changed to always expand the group by default if the group contains a required field. Also, the headings for groups containing required fields now hint "Has required fields."

      In the next release, fixed the required field error message showing the phrase-name of the missing field rather than the phrase value. Also added the heading the field appears under to the error so that it's easier to locate if the heading is currently collapsed.

      A related permissions escalation has also been addressed for the February security update.
      Reply Reply  
    5. January 30, 2021 4:19 PM
      expanserpb expanserpb is offline
      Junior Member
      Sounds brilliant. Thanks this will help a lot!
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 3:24 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.