Update hidden edit fields with a different value


hi,

 

i using couple of web app fields style other web app edit fields hidden or revealed.

eg class="{tag_hidereveal 1}" output class="hide" or class="reveal".

 

when web app created hidereveal values set. trying update values in hidden fields using edit page.

 

however return current value of field, if physically write opposite edit page code. don't want value set customers, must hidden.

 

how can make these swap? jquery or javascript it? if 1 reveal, want hide, , vice versa.

 

edit page code

__________________________________________________________________________________________ ____________________

<div class="{tag_hidereveal 1}">

             <label>do you, host, agree term , conditions , wish make offer visitor?</label>

                <input type="checkbox" name="cat_custom_255715" id="cat_custom_255715_0" value="yes" />yes</div>

<input type="hidden" name="cat_custom_257330" id="cat_custom_257330" class="hidereveal" value="hide" /><!-- reveal, want hide -->

 

              

<div class="{tag_hidereveal 2}"><label>do you, visitor, agree terms , conditions , accept offer host?</label>

                <input type="checkbox" name="cat_custom_255716" id="cat_custom_255716_0" value="yes" />yes</div>

<input type="hidden" name="cat_custom_257331" id="cat_custom_257331" class="hidereveal" value="reveal" /><!-- hide, want reveal -->

 

__________________________________________________________________________________________ ____________________

outputted code


<div class="reveal">

             <label>do you, host, agree term , conditions , wish make offer visitor?</label>

                <input type="checkbox" name="cat_custom_255715" id="cat_custom_255715_0" value="yes" />yes</div>

<input type="hidden" name="cat_custom_257330" id="cat_custom_257330" class="hidereveal" value="reveal" /><!-- reveal, want hide -->

 

              

<div class="hide"><label>do you, visitor, agree terms , conditions , accept offer host?</label>

                <input type="checkbox" name="cat_custom_255716" id="cat_custom_255716_0" value="yes" />yes</div>

<input type="hidden" name="cat_custom_257331" id="cat_custom_257331" class="hidereveal" value="hide" /><!-- hide, want reveal -->

 

 

thanks!!

i'm little confused.  using these tags on edit item layout web app? want reveal/hide content based on selection while on edit layout view?

 

why using 2 {tag_hidereveal} tags (ie- {tag_hidereveal 1} , {tag_hidereveal 2}?  if intend 1 or other, should use 1 tag {tag_hidereveal} , value either "hide" or reveal". code be:

 

<div class="{tag_hidereveal}">

             <label>do you, host, agree term , conditions , wish make offer visitor?</label>

                <input type="checkbox" name="cat_custom_255715" id="cat_custom_255715_0" value="yes" />yes</div>

<input type="hidden" name="cat_custom_257330" id="cat_custom_257330" class="hidereveal" value="{tag_hidereveal}" /><!-- reveal, want hide -->

</div>

 

and use css hide .hide , can nothing .reveal class:

 

.hide { display: none; }

 

this way div shown when hidereveal set reveal , hidden when it's set hide. 

 

i might missing explanation. let me know if getting gist.



More discussions in Web Apps


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account