DMXzone App Connect Support Product Page
Answered
show / hide wont do the trick.. any solution on how i can approach this?
Asked 25 Aug 2017 12:53:07
1
has this question
25 Aug 2017 12:53:07 Reinhardt Ellis posted:
Ok i have 2 text fields.. same ID same NAMEI used PHP before to Filter them show / hide them with a IF statment
<?php if ($mobile_number=="Yes") { ?> <input type="text" placeholder="Your mobile number" value="" data-msg-required="Please enter your mobile number." maxlength="100" class="form-control" name="mobile_number" id="mobile_number" required> <?php }; ?> <?php if ($mobile_number=="No") { ?> <input type="hidden" value="Not applicable" name="mobile_number" id="mobile_number"> <?php }; ?>
But now i want to use APP CONNECT to hide show them.
Please note same ID and same NAME so only ONE field needs to be active. Either the text field or the hidden fields.
I have used the APP CONNECT show hide function ... but this ONLY hides or shows it... it does NOT disable the one...
It just hides it in a DIV... the problem really comes in when I HIDE a text field.. but it still have the "required" attribute ...
So event if its not showing.. its required so my form wont submit....
what would be the easiest solution be.. to have one text field and HIDE / SHOW ... but how then do i get past the "required" attribute ...... so when its set to SHOW.. to use the "required" attribute ... and when set to HIDE ...to disable "required" attribute ...
Replies
Replied 25 Aug 2017 13:07:44
25 Aug 2017 13:07:44 Teodor Kuduschiev replied:
Hi Reinhardt,
You can do this using conditional regions, as described here: www.dmxzone.com/go/32764/dmxzone-app-connect-manual/32983/showing-and-hiding-regions-on-your-page-based-on-user-roles
Just instead user roles, use your own condition.
You can do this using conditional regions, as described here: www.dmxzone.com/go/32764/dmxzone-app-connect-manual/32983/showing-and-hiding-regions-on-your-page-based-on-user-roles
Just instead user roles, use your own condition.
Replied 25 Aug 2017 13:26:08
25 Aug 2017 13:26:08 Reinhardt Ellis replied:
thank you i will give this a go...