required custom fields wont save data

  • Posts: 490
  • Thank you received: 2
8 years 7 months ago #255073

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

i created two fields and set them as required. one is local number and the other is mobile number. My issue is the fields wont save if only one is correct. An error will flash then both fields are empty.

what i would like is for the correct field to save if it is correct regardless of the status of the other field

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 7 months ago #255097

Hi,

If you turn on the "required" setting of the custom field, the field has to be filled.
There is no option to have a required state for "at least one of two fields".
That would require some custom coding.
Otherwise, the simplest is to keep the required setting turned off for both field

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum