As a follow up question, I guess I have a lot to learn in Couch.
I have a few editable fields with required parameters set to 1. I show or hide these fields using the conditional function I asked you about.
Now I am trying to create a review system so that when a use is viewing a page they will be able to add reviews with the stars voting addon ( I am giving the votes addon a try). So I did this for the review form:
- Code: Select all
<cms:form masterpage=k_template_name mode='edit' page_id=k_page_id anchor='0' method='post'>
<cms:if k_success>
<cms:db_persist_form page_rating=frm_stars />
<cms:if k_success>
<cms:db_persist
_masterpage='reviews.php'
_mode='create'
method='post'
anchor='0'
_invalidate_cache='0'
_auto_title='0'
k_page_title=current_user
k_page_name="<cms:random_name />"
reviewer_email=current_user_email
page_review=frm_stars
review_owner=k_user_id
page_reviewed="<cms:show k_page_id />"
review_msg=frm_review_msg
/>
</cms:if>
........
</cms:if>
However I keep getting this error:
Required field cannot be left empty. Meanwhile for that particular page the fields showing the error are hidden and its even correct at the backend so I am confused as to why I am getting those errors. The errors are showing for all the required fields that are hidden for the page in view.
If I view another page and try to submit a review, it then shows errors for required fields are supposed to be activated r are suposed to show only if certain conditions are met when using the conditional functions ate the backend.