template layout problem

edited August 2014 in Modules
when setting templates in form field, by default, it shows one templates, the rest add with add more button, is it possible to show zero template when first loaded on create page, means all template fields must be add by click add more butyon

Comments

  • edited 9:53AM
    There unfortunately is not that option at this time.
  • edited August 2014
    ouch, could you tell me which file i can edit? i will try to twist it myself. The reason why i want to do this is because if there are validation on these template fields( validate if there are such fields present in the key of submitted data), it will cause fail of submit in edit/create mode as there are empty template fields populated.
  • edited 9:53AM
    You can always try adding an on_before_validate hook to unset those values if empty. That field is setup in the fuel/modules/fuel/library/Fuel_custom_fields.php file.
  • edited 9:53AM
    yeah, during the lunch, i thought of same idea, am modifying the scripts. but still thanks :)
Sign In or Register to comment.