Forum
Editable Content in Member Forms
Hi, I've been struggling to get a member form up with a editable content region. I'm calling this in my page:
perch_member_form('register.html');
but the region does't come up. When I use:
perch_content('register');
The form does not submit to the members app.
Here's a copy of my form:
<perch:form id="register" method="post" app="perch_members" type="customer">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
<h2><perch:content id="heading" type="text" label="Heading" required="true" /></h2>
<perch:content id="intro" type="textarea" label="Introductary Text" textile="true" html="true" editor="ckeditor" />
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4 pull-right text-center">
<img src="<perch:content id="register_meter" type="image" label="Logo" />" alt="<perch:content id="register_meter_alt" type="text" label="Alt text" />" />
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4 pull-left">
<perch:label for="firstname">First Name</perch:label>
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-user"></i></div>
<perch:input type="text" class="form-control" id="firstname" name="firstname" required="true" label="First Name" />
</div>
<perch:error for="firstname" type="required">
<div class="text-danger help-block">Please enter your first name</div>
</perch:error>
<perch:label for="surname">Surname Name</perch:label>
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-user"></i></div>
<perch:input type="text" class="form-control" id="surname" name="surname" required="true" label="Surname" />
</div>
<perch:error for="surname" type="required">
<div class="text-danger help-block">Please enter your surname</div>
</perch:error>
<perch:label for="email">Email Address</perch:label>
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-envelope"></i></div>
<perch:input type="email" class="form-control" id="email" required="true" label="Email Address" />
</div>
<perch:error for="email" type="required">
<div class="text-danger help-block">Please ensure a valid Email Address</div>
</perch:error>
<perch:error for="email" type="format">
<div class="text-danger help-block">Please check your email address</div>
</perch:error>
<perch:label for="password">Password</perch:label>
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-key"></i></div>
<perch:input type="password" class="form-control" id="password" required="true" match-with="password2" />
</div>
<perch:error for="password" type="required">
<div class="text-danger help-block">Please add a password</div>
</perch:error>
<perch:error for="password" type="match">
<div class="text-danger help-block">Passwords do not match</div>
</perch:error>
<perch:label for="password2">Re-enter Password</perch:label>
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-key"></i></div>
<perch:input type="password" class="form-control" id="password2" required="true" />
</div>
<perch:error for="password2" type="required">
<div class="text-danger help-block">Please repeat your password</div>
</perch:error>
<hr />
<perch:input type="cms" /><!-- needed because of submit using button not perch:input. needed for icon-->
<button type="submit" id="submit" class="btn btn-primary form-control">Create Account <i class="fa fa-chevron-right pull-right"></i> </button>
</div>
</div>
<div class="row">
</div>
<perch:success>
<p>Thanks!</p>
</perch:success>
</perch:form>
I'm using the latest Perch Runway. I'd really appreciate any help Thanks Dylan
What does debug give you when the form doesn't submit?
Apologies for the delay. Here's the Debug code from the form:
That submission is being handled by the Members app.
Yes, but there must be some error as it's not registering the entry in the members app ?
It should be under the 'Pending' tab.
Unfortunately there's nothing under pending ?
Sorry, to be clear, the form submits and I get the thank you message on the page, but no entry appears in the members app. When I use the
It submits perfectly, but I can't edit the content regions in the page. I'd like to be able to use
and select the form template (like the forms app) and edit regions in the form, and have the member come up in the members app. I'm sure this is clear, It just helps me to sum up. Are you able to get this working ? Thanks Dylan
I can see it working in the debug:
Is your
perch2_members
table empty?Drew, I'm sorry, I've discovered the problem was with my test environment, I've restarted the server and it's working perfectly now. So sorry to waste your time ! Thanks Dylan