Hi @anaptfox,
At the moment I’m working on the user register page. My old design works but with the new design I can’t get it work.
I have the same endpoint, the same workflow but a slightly different html code.
My Code for the POST-Method:
<form id="form-login" method="post">
<h2 class="text-center"><strong>Create</strong> an account.</h2>
<div class="form-group" id="firstname"><input class="form-control" required value="{{ pageData.firstName }}" required="" type="text" placeholder="First name" ></div>
<div class="form-group" id="surname"><input class="form-control" required value="{{ pageData.lastName }}" required="" type="text" placeholder="Surname" ></div>
<div class="form-group" id="usergroup"><input class="form-control" required value="{{ pageData.userGroup }}" required="" type="object" placeholder="Company code" ></div>
<div class="form-group" id="email"><input class="form-control" required value="{{ pageData.email }}" required="" type="email" name="email" placeholder="Email"></div>
<div class="form-group" id="password"><input class="form-control" type="password" name="password" placeholder="Password (min. 8 characters)" minlength="8"></div>
<div class="form-group"><button class="btn btn-primary btn-block" id="button-sign-up" type="submit">Sign Up</button></div><a class="already" href="/login">You already have an account? Login here.</a></form>
This is the Workflow with the error:
This is the Validate Payload Node Code:
{
“type”: “object”,
“properties”: {
“email”: {
“type”: “string”,
“format”: “email”
},
“firstName”: {
“type”: “string”,
“minLength”: 1,
“maxLength”: 255
},
“lastName”: {
“type”: “string”,
“minLength”: 1,
“maxLength”: 255
},
“password”: {
“type”: “string”,
“minLength”: 8,
“maxLength”: 255
},
“userGroup”: {
“group”: {
“type”: “string”
}
}
},
“required”: [“firstName”, “lastName”, “email”, “password”, “userGroup”],
“additionalProperties”: false
}
This is my page layout. Company Code would be the user group in the workflow.
What ever I try I can’t pass the “Validate Payload” Node. I just don’t understand it, because it should be the same data.
Best regards,
Tim