This is a follow up to my original post here: http://www.couchcms.com/forum/viewtopic.php?f=4&t=10332

What I need to do in the dropdown is remove 2 of the locations from appearing but not remove their pages. I am not sure which if statement or couch tag I could use in the code below:

Code: Select all
<cms:form name="appoint_form" action='' id="appoint_form" method="post" accept-charset="utf-8" anchor='1'>
                              <cms:if k_success>
                                 <cms:set email="<cms:get_custom_field masterpage='locations.php' 'email' page=frm_location />" scope='parent' />
                                 <cms:send_mail from=frm_email to=email subject='New Appointment Request'>
                                    The following was submitted via the Appointment form on FootSurgeon.com:
                                    <cms:show k_success />
                                 </cms:send_mail>
                                 <cms:redirect url='/success.php' />
                                 <cms:else /><cms:if k_error>
                                    <div class="alert alert-danger">
                                       <cms:if k_error_location>Please Choose a location.<br/></cms:if>
                                       <cms:if k_error_first_name>Please enter your first name.<br/></cms:if>
                                       <cms:if k_error_last_name>Please enter your last name.<br/></cms:if>

                                       <cms:if k_error_email>Please enter a valid email address.<br/></cms:if>
                                       <cms:if k_error_phone>Please enter a phone number.<br/></cms:if>

                                       <cms:if k_error_date>Please select an appointment date.<br/></cms:if>
                                    </div>
                                 </cms:if>
                              </cms:if>
                              <cms:input type="dropdown" name="location" opt_values="Please Choose a Location=- | <cms:pages masterpage='locations.php'><cms:show drop />=<cms:show k_page_name /><cms:if k_paginated_bottom='0' >|</cms:if></cms:pages>" required='1' />
                              <div class="clearfix"></div>
                              <cms:input type="text" name="first_name" id="first_name" placeholder="First Name" required='1' />
                              <cms:input type="text" name="last_name" id="last_name" placeholder="Last Name" required='1' />
                              <cms:input type="text" name="email" id="email" placeholder="Email Address" validator='email' required='1' />
                              <cms:input type="text" name="phone" id="phone" placeholder="Phone #" required='1' />
                              <cms:input type="text" name="datepicker" id="datepicker" placeholder="Desired Appointment Date"  required='1' style="width:98%;" />
                              <cms:input class="message" rows="7" cols="70" type='textarea' name="message" id="message" placeholder="Message"></cms:input>
                              <input type="submit" value="submit" class="btn btn-default btn-rounded">
                           </cms:form>