on 2019 May 13 1:01 PM
Hello,
I am attempting to make title, firstname and lastname non-mandatory on address. The source is building and running without error, however the user is still unable to save the address in the frontend. No error is displayed in the logs it simply states on screen to address errors (no fields are highlighted). Here are the steps I have carried out so far...
Custom Address Form extending addressform. This contains get/set methods e.g. getCustomFirstName and setCustomFirstName
Custom Address Data Util extending addressdatautil. This calls the get/set of the methods in custom address form
Custom Address Validator implementing Validator. This is an entire copy of the AddressValidator with the validation commented out for non-mandatory fields
PageController pointing to custom address validator
Custom MyCompanyManageUnitAddAddressPage.jsp with formelement path set to customfield of form and mandatory = "false"
AddressFormElements.tag page to set fields as mandatory = "false" (And set path to customfield)
I can't figure out what i'm missing, any guidance would be appreciated. I'm new to hybris development and spring framework, so apologies for my very likely basic errors in advance.
Request clarification before answering.
I've got a little further today, it seems that by extending addressForm it is still failing validation of the original title/firstname/lastname fields even though they do not appear on the page.
Looks like I may need a standalone CustomAddressForm??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.