0

The examples are not working for me. The category value via the Guest Form plugin is not saving:

  <select name="fields[adCategory][]" id="adCategory">
  <option value="">-- Category --</option>
  {% for category in categoryObj %}
  <option value="{{ category.id }}">{{ category.title }}</option>
  {% endfor %}
  </select>

Am also trying to save a hidden dateTime field (set just to show Date), how do we do that?

  <input type="hidden" name="fields[adExpirationDate]" value="{{ now|date_modify('+6 month')|datetime('short') }}">

Any help would be greatly appreciated! Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.