Wappler Version :6.0.0 beta 2 dmxAppConnect.js @build 2023-08-08 10:37:14
Operating System : Windows 11
Server Model: PHP
Database Type: MySQL
Hosting Type: All
Expected behavior
What do you think should happen?
The following code in a repeat should only show when the value of question_type is t
.
<textarea id="i_question_type_t" placeholder="Your response"
class="form-control input_form"
dmx-show="question_type=='t'"
dmx-on:updated="
attendees.update({$id: this_attendee_number.value}, {responses_okay: 0});
responses.update({attendee_number_question: this_attendee_number.value+'_'+id},{response: i_question_type_t.value, has_responded: i_question_type_t.value.length()>1?1:0});show_payment_details.setValue(0)" rows="2"
dmx-class:input_required="(actually_required.value==1) && (has_responded.value==0) && (show_response_errors==1)"></textarea>
The repeat is formatted like this:
<div dmx-repeat:rg_questions="get_activity.data.questions.where(`question_per`, 'a', "==").sort('question_number')" dmx-show="(activity_is_full.value==0) && (add_to_waiting_list.value==0)">
Within the repeat, the textarea is in a form.
Actual behavior
What actually happens?
It is being shown irrespective of the value of question_type
How to reproduce
It is happening on this page here: