There are watchers for things like billing address, etc but you may be looking for UpdateContactInformation.php in the spark/src/Interactions/Settings/Profile directory. I am not sure how exactly you changed the process. Spark is very, very opinionated and is difficult to track down what does what.
Validation in Spark broken after changing user fields
I have minimally changed the registration process - instead of name, I'm using firstname and lastname. No problem.
form: $.extend(true, new SparkForm({
firstname: '',
lastname: '', email: '' }),
Spark.forms.updateContactInformation)
That works fine for CREATION of the user object, however upon successful registration, I want the user to fill in the rest of their profile - of which there are many new fields I'm adding.
So, in adding all the new fields to the settings page (for example, lastname), on clicking the update button, it seems something is still validating the name, instead of firstname, and I'm unsure where to put in my new fields for validation purposes. Getting error The name field is required.
As per the Spark docs, I'm using Spark::validateUsersWith to validate the firstname instead of name, hence the create user works - but where is the validation for updating ? I cant seem to locate that.
Please or to participate in this conversation.