• Resolved fixpaana

    (@fixpaana)


    I wanted to change the “Add details” from to better suite my website. The page I am referring to can be found of Listing Hive by following: Home > Add Listing > Select category > Add Details.

    I want to customise this form beyond what merely adding new attributes allows. I want to make a listing website for cars and wanted to make certain fields mandatory and wanted to format certain other fields like user input Year in the YYYY format only preferably using a “scroll and select” option. Can’t find a way to do that yet. Any help is appreciated.

    Forgive my lack of experience. This is my first website and am still trying to understand how things work here.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author HivePress

    (@hivepress)

    Please try using the listing attributes functionality, this is the best way to add custom fields to the Add Details form. You can mark attributes as Required to make them mandatory. There’s no year-specific attribute type yet, but you can try using the Text field with the following Regex pattern:

    (19|20)\d{2}

    This will require 1900-2099 values.

    Thread Starter fixpaana

    (@fixpaana)

    Thanks for the prompt reply and apologies for my delay in getting back. I have gotten used to the Attributes functionality now and have been able to work my way around getting the “Add details” form to do what I want it to do. Its now working fine. I do want to make uploading pictures a required/mandatory thing, which currently is “Optional” and I cannot find a way to change that.

    Any tips on how I can do that?

    Theme Author HivePress

    (@hivepress)

    Thread Starter fixpaana

    (@fixpaana)

    I tried that snippet but it didn’t work for me. I didn’t know how to do it so I did some research and decided to use the “Insert PHP Code Snippet” plugin to do the job. I copy pasted the snippet in the plugin and activated it. But there was no change in the Images “Optional” field on my website.

    Please let me know if I did something wrong.

    Theme Author HivePress

    (@hivepress)

    Yes, the Code Snippets plugin is the easiest way to add custom PHP snippets. Please try submitting the listing form, the optional label may appear but it should require at least 1 image.

    Thread Starter fixpaana

    (@fixpaana)

    I tried submitting the listing without images and it accepted it, didn’t warn or indicate image as being required. What could be the issue?

    Theme Author HivePress

    (@hivepress)

    Please make sure that the snippet is added correctly and it’s enabled on the front-end (not just back-end). You can also search other sample snippets on HivePress forum by “images required”.

    Thread Starter fixpaana

    (@fixpaana)

    I really appreciate the help! I deleted my old plugin and installed the Code Snippets plugin. Then added the same code and selected run everywhere option. It works now!

    _terms” field is required

    Theme Author HivePress

    (@hivepress)

    @jeremiah37 Please try using our official support forum if there are any issues https://community.hivepress.io/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Editing the “Add Details” form’ is closed to new replies.