Skip Navigation

[Resolved] Required notification alert-danger for image field

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 7 replies, has 3 voices.

Last updated by Beda 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#573285
chrome_2017-09-25_14-42-59.png

The image field is having the css classes wpt-form-error alert 'alert-danger' assigned...

Other fields have the class 'wpt-form-error'.

See difference in image attached. Would it be possible to have all the 'required' fields to have the same class assigned?

#573334

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lindsay,

Thank you for contacting our support forum.

Does the image field use bootstrap elements as this is why it could be using the alert-danger as this is the class to make the alert box above the field.

All our fields get the wpt-form-error class on them when an error is thrown. Could you copy the form field here from the backend so I can have a look.

Thanks,
Shane

#573348

Hi Shane, here is the form...

Also in Settings > Forms > Styling I have both the below ticked.
* Load CRED legacy style sheets on front-end
Legacy: include the CRED styles needed for forms created before CRED 1.9
* Include Bootstrap classnames in old CRED forms
Legacy: include Bootstrap classnames in forms created before CRED 1.9

[credform class='cred-form cred-keep-original']

[wpv-conditional if="( '[wpv-current-user info='role']' eq 'supplier' ) AND ( p_post_count() gte '1' )"]
<span style="color:red;">You have already submitted this form</span>, your listing is currently under review by Rayner Peett at Perfect Weddings.
[/wpv-conditional]

[wpv-conditional if="( '[wpv-current-user info='role']' eq 'supplier' ) AND ( p_post_count() lt '1' )"]
<div class="cred-header"><h3>Create a New Listing</h3></div>
[/wpv-conditional]
	

	<div class="cred-field cred-field-post_title">
		<label class="cred-label">
Business Name
</label>
		[cred_field field='post_title' post='wedding-supplier' value='' urlparam='']
	</div>

	<div class="cred-field cred-field-post_content">
		<label class="cred-label">
Full Description
</label>
		[cred_field field='post_content' post='wedding-supplier' value='' urlparam='']
	</div>

	<div class="cred-group cred-group-Wedding-Suppliers-Listing-Form">
		
		<div class="cred-field cred-field-main-image">
			<label class="cred-label">
Main Image
</label>
			[cred_field field='main-image' post='wedding-supplier' value='' urlparam='']
		</div>
		<div class="cred-field cred-field-price-range">
			<label class="cred-label">
Price Range
</label>
			[cred_field field='price-range' post='wedding-supplier' value='' urlparam='' required="true"]
		</div>
      
      
        <div class="cred-field cred-field-profilepic-or-logo">
			<label class="cred-label">
Profile Picture or Logo
</label>
			[cred_field field='profilepic-or-logo' post='wedding-supplier' value='' urlparam='']
		</div>
      
      
       [cred_show_group if="($(profilepic-or-logo) ne  '' )"  mode='fade-slide']
       <div class="cred-field cred-field-image-text-or-picture">  
      		[cred_field field='profile-image-text-or-picture' post='wedding-supplier' value='' urlparam='']
       </div>
      [/cred_show_group]    
      
      
<div class="cred-header"><h4>Listing Contact Details</h4></div>        
      
		<div class="cred-field cred-field-website">
			<label class="cred-label">
Website
</label>
			[cred_field field='website' post='wedding-supplier' value='' urlparam='']
		</div>
        
      
		<div class="cred-field cred-field-first-name one-fourth first" style='margin-bottom: 0'>
			<label class="cred-label">
First Name
</label>
			[cred_field field='first-name-listing' post='wedding-supplier' value='[wpv-user field='user_firstname']' urlparam='']
		</div>      
      
      
      		<div class="cred-field cred-field-last-name one-fourth" style='margin-bottom: 0'>
			<label class="cred-label">
Last Name
</label>
			[cred_field field='last-name-listing' post='wedding-supplier' value='[wpv-user field='user_lastname']' urlparam='']
		</div>  
      
      
		<div class="cred-field cred-field-email one-fourth" style='margin-bottom: 0'>
			<label class="cred-label">
Email
</label>
		 [cred_field field='email' post='wedding-supplier' value='[wpv-user field='user_email']']
                
		</div>
         
      
		<div class="cred-field cred-field-phone one-fourth" style='margin-bottom: 0'>
			<label class="cred-label">
Phone
</label>  
            [cred_field field="phone" post="wedding-supplier" value='[types usermeta="phone" user_current="true"][/types]']
                    
		</div>
		
      <div class="cred-field cred-field-address">
			<label class="cred-label">
Address
</label>
			[cred_field field='address' post='wedding-supplier' value='' urlparam='']
		</div>
</div>


      	<div class="cred-taxonomy cred-taxonomy-supplier-location">
          <div class="cred-header"><h4>Your Location:</h4></div>
			[cred_field field='location-supplier' display='checkbox']

		</div>
      


<div class="cred-group cred-group-Supplier-Slider-Images">
		<div class="cred-header"><h4>Supplier Slider Images</h4></div>
		<div class="cred-field cred-field-images-for-slider" style="font-size:18px">
			[cred_field field='images-for-slider' post='wedding-supplier' value='' urlparam='']
		</div>

		<div class="cred-field cred-field-slider-images-field">
			<label class="cred-label">
Slider Images - 2 to 10 (maximum)
</label>
			[cred_field field='slider-images-field' post='wedding-supplier' value='' urlparam='']
		</div>   
	</div>



	<div class="cred-group cred-group-taxonomies">
       
		<div class="cred-taxonomy cred-taxonomy-supplier-category">
          <div class="cred-header"><h3><span style="color: #D320B3;">Select the business category</span> to be filed under:</h3>
            </div>
          
        <div class="cred-field cred-field-type">
			<label class="cred-label">
              For PCs, hold down the CTRL key to select more than one business listing category.
</label>
      
		</div>
          
			[cred_field field='supplier-category' display='select' single_select="false"]

		</div>
		
	</div>

	

[cred_show_group if="(STR($(supplier-category)) = REGEX('82') OR STR($(supplier-category)) = REGEX('83') OR STR($(supplier-category)) = REGEX('84') OR STR($(supplier-category)) = REGEX('139'))" mode="fade-slide"]

	<div class="cred-group cred-group-accommodation">
		<div class="cred-header"><h4>Accommodation</h4></div>
		<div class="cred-field cred-field-accommodation-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='accommodation-options' post='wedding-supplier' value='' urlparam='']
		</div>
                     
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('76') OR STR($(supplier-category)) = REGEX('79') OR STR($(supplier-category)) = REGEX('103') OR STR($(supplier-category)) = REGEX('108') )" mode="fade-slide"]

	<div class="cred-group cred-group-Caterer">
		<div class="cred-header"><h4>Caterer</h4></div>
		<div class="cred-field cred-field-dietary-requirements">
			<label class="cred-label">
Dietary Provision
</label>
			[cred_field field='dietary-provision' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('77'))" mode="fade-slide"]

	<div class="cred-group cred-group-bbq-hog">
		<div class="cred-header"><h4>BBQ\Hog Roast</h4></div>
		<div class="cred-field cred-field-bbq-hogroast-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='bbq-hogroast-options' post='wedding-supplier' value='' urlparam='']
		</div>
		
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('78'))" mode="fade-slide"]

	<div class="cred-group cred-group-choc-fountain">
		<div class="cred-header"><h4>Chocolate Fountain</h4></div>
		<div class="cred-field cred-field-choc-fountain-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='choc-fountain-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('80'))" mode="fade-slide"]

	<div class="cred-group cred-group-sweet-cart">
		<div class="cred-header"><h4>Sweet Cart</h4></div>
		<div class="cred-field cred-field-sweet-cart-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='sweet-cart-options' post='wedding-supplier' value='' urlparam='']
		</div>
           
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('80') OR STR($(supplier-category)) = REGEX('140') OR STR($(supplier-category)) = REGEX('144') OR STR($(supplier-category)) = REGEX('66') )" mode="fade-slide"]

	<div class="cred-group cred-group-decoration-hire">
		<div class="cred-header"><h4>Decoration Hire</h4></div>
		<div class="cred-field cred-field-decoration-hire">
			<label class="cred-label">
Items Available
</label>
			[cred_field field='decoration-hire-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('106'))" mode="fade-slide"]

	<div class="cred-group cred-group-Favours">
		<div class="cred-header"><h4>Favours</h4></div>
		<div class="cred-field cred-favour-options">
			<label class="cred-label">
Favours
</label>
			[cred_field field='favour-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('105'))" mode="fade-slide"]

	<div class="cred-group cred-group-Gift-Lists">
		<div class="cred-header"><h4>Gift Lists</h4></div>
		<div class="cred-field cred-gift-list-options">
			<label class="cred-label">
Gift Lists
</label>
			[cred_field field='gift-list-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('107'))" mode="fade-slide"]

	<div class="cred-group cred-group-Wedding-Gifts">
		<div class="cred-header"><h4>Wedding Gifts</h4></div>
		<div class="cred-field cred-wedding-gift-options">
			<label class="cred-label">
Wedding Gifts
</label>
			[cred_field field='wedding-gift-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('67'))" mode="fade-slide"]

	<div class="cred-group cred-group-Florist">
		<div class="cred-header"><h4>Florist</h4></div>
		<div class="cred-field cred-field-flower-options">
			<label class="cred-label">
Flower Type Options You Provide
</label>
			[cred_field field='flower-types' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('65'))" mode="fade-slide"]

	<div class="cred-group cred-group-Hair">
		<div class="cred-header"><h4>Hair</h4></div>
		<div class="cred-field cred-field-hair-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='hair-options' post='wedding-supplier' value='' urlparam='']
		</div>
		
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('81'))" mode="fade-slide"]

	<div class="cred-group cred-group-nails">
		<div class="cred-header"><h4>Nails</h4></div>
		<div class="cred-field cred-field-nail-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='nail-options' post='wedding-supplier' value='' urlparam='']
		</div>
		
	</div>

[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('64'))" mode="fade-slide"]

	<div class="cred-group cred-group-Skin-type">
		<div class="cred-header"><h4>Skin Type</h4></div>
		<div class="cred-field cred-field-skin-type">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='skin-type' post='wedding-supplier' value='' urlparam='']
		</div>
		
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('114'))" mode="fade-slide"]


	<div class="cred-group cred-group-hen-party">
		<div class="cred-header"><h4>Hen Night</h4></div>
		<div class="cred-field cred-field-hen-options">
			<label class="cred-label">
Hen Options You Provide
</label>
			[cred_field field='hen-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('115') )" mode="fade-slide"]


	<div class="cred-group cred-group-stag-party">
		<div class="cred-header"><h4>Stag Night</h4></div>
		<div class="cred-field cred-field-stag-options">
			<label class="cred-label">
Stag Options You Provide
</label>
			[cred_field field='stag-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('98'))" mode="fade-slide"]

	<div class="cred-group cred-group-jewellery">
		<div class="cred-header"><h4>Jewellery</h4></div>
		<div class="cred-field cred-field-jewellery-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='jewellery-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]




[cred_show_group if="(STR($(supplier-category)) = REGEX('68') OR STR($(supplier-category)) = REGEX('70') OR STR($(supplier-category)) = REGEX('69') OR STR($(supplier-category)) = REGEX('143'))" mode="fade-slide"]

	<div class="cred-group cred-group-music">
		<div class="cred-header"><h4>Music</h4></div>
		<div class="cred-field cred-field-dj-extas-available">
			<label class="cred-label">
Extras Available
</label>
			[cred_field field='dj-extras-available' post='wedding-supplier' value='' urlparam='']
		</div>
      
		<div class="cred-field cred-field-music-genres">
			<label class="cred-label">
Genres You Provide
</label>
			[cred_field field='music-genres' post='wedding-supplier' value='' urlparam='']
		</div>
      
	</div>
[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('60') OR STR($(supplier-category)) = REGEX('62') OR STR($(supplier-category)) = REGEX('59') OR STR($(supplier-category)) = REGEX('61') )" mode="fade-slide"]
	<div class="cred-group cred-group-Textiles">
		<div class="cred-header"><h4>Textiles</h4></div>
		<div class="cred-field cred-field-textile-styles">
			<label class="cred-label">
Styles
</label>
			[cred_field field='textile-styles' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('66'))" mode="fade-slide"]
	<div class="cred-group cred-group-Textiles">
		<div class="cred-header"><h4>Chair Covers</h4></div>
		<div class="cred-field cred-field-chair-styles">
			<label class="cred-label">
Styles
</label>
			[cred_field field='chair-cover-styles' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]




[cred_show_group if="(STR($(supplier-category)) = REGEX('95'))" mode="fade-slide"]

	<div class="cred-group cred-group-hats">
		<div class="cred-header"><h4>Hats</h4></div>
		<div class="cred-field cred-field-hat-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='hat-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('96'))" mode="fade-slide"]

	<div class="cred-group cred-group-shoes">
		<div class="cred-header"><h4>Shoes</h4></div>
		<div class="cred-field cred-field-shoe-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='shoe-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('97'))" mode="fade-slide"]

	<div class="cred-group cred-group-underwear">
		<div class="cred-header"><h4>Underwear</h4></div>
		<div class="cred-field cred-field-underwear-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='underwear-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('72'))" mode="fade-slide"]

	<div class="cred-group cred-group-photo-booths">
		<div class="cred-header"><h4>Photo Booths</h4></div>
		<div class="cred-field cred-field-photo-booth-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='photo-booth-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>


[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('74'))" mode="fade-slide"]

	<div class="cred-group cred-group-photographers">
		<div class="cred-header"><h4>Photopgraphy</h4></div>
		<div class="cred-field cred-field-photography-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='photography-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>


[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('73'))" mode="fade-slide"]

	<div class="cred-group cred-group-videographers">
		<div class="cred-header"><h4>Videographers</h4></div>
		<div class="cred-field cred-field-Videographers-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='videographers-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>


[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('94'))" mode="fade-slide"]

	<div class="cred-group cred-group-stationery">
		<div class="cred-header"><h4>Stationery</h4></div>
		<div class="cred-field cred-field-stationery-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='stationery-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>


[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('101'))" mode="fade-slide"]

	<div class="cred-group cred-group-cars">
		<div class="cred-header"><h4>Cars</h4></div>
		<div class="cred-field cred-field-car-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='car-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>


[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('102'))" mode="fade-slide"]

	<div class="cred-group cred-group-horse-carriage">
		<div class="cred-header"><h4>Horse & Carriage</h4></div>
		<div class="cred-field cred-field-horse-carriage-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='horse-carriage-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('100'))" mode="fade-slide"]

	<div class="cred-group cred-group-limousine">
		<div class="cred-header"><h4>Limousine</h4></div>
		<div class="cred-field cred-field-limousine-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='limousine-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('93'))" mode="fade-slide"]


	<div class="cred-group cred-group-bunting">
		<div class="cred-header"><h4>Bunting</h4></div>
		<div class="cred-field cred-field-bunting-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='bunting-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('88'))" mode="fade-slide"]

	<div class="cred-group cred-group-crockery-cutlery-hire">
		<div class="cred-header"><h4>Crockery\Cutlery Hire</h4></div>
		<div class="cred-field cred-field-crockery-cutlery-hire-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='crockery-cutlery-hire-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('91'))" mode="fade-slide"]

	<div class="cred-group cred-group-fireworks">
		<div class="cred-header"><h4>Fireworks</h4></div>
		<div class="cred-field cred-field-firework-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='firework-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('87'))" mode="fade-slide"]

	<div class="cred-group cred-group-furniture-hire">
		<div class="cred-header"><h4>Furniture Hire</h4></div>
		<div class="cred-field cred-field-furniture-hire-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='furniture-hire-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('89'))" mode="fade-slide"]

	<div class="cred-group cred-group-glass-hire">
		<div class="cred-header"><h4>Glass Hire</h4></div>
		<div class="cred-field cred-field-glass-hire-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='glass-hire-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('86'))" mode="fade-slide"]

	<div class="cred-group cred-group-marquees">
		<div class="cred-header"><h4>Marquees</h4></div>
		<div class="cred-field cred-field-marquee-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='marquee-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('92'))" mode="fade-slide"]


	<div class="cred-group cred-group-toastmasters">
		<div class="cred-header"><h4>Toastmasters</h4></div>
		<div class="cred-field cred-field-toastmaster-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='toastmaster-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('90'))" mode="fade-slide"]

	<div class="cred-group cred-group-toilet-hire">
		<div class="cred-header"><h4>Toilet Hire</h4></div>
		<div class="cred-field cred-field-toilet-hire-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='toilet-hire-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('138'))" mode="fade-slide"]

	<div class="cred-group cred-group-wood-slice">
		<div class="cred-header"><h4>Wood Slices</h4></div>
		<div class="cred-field cred-field-wood-slice-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='wood-slice-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('141'))" mode="fade-slide"]

	<div class="cred-group cred-group-bouncy-castle">
		<div class="cred-header"><h4>Bouncy Castles</h4></div>
		<div class="cred-field cred-field-bouncy-castle-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='bouncy-castle-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]


[cred_show_group if="(STR($(supplier-category)) = REGEX('142'))" mode="fade-slide"]

	<div class="cred-group cred-group-rodeo-bull">
		<div class="cred-header"><h4>Rodeo Bulls</h4></div>
		<div class="cred-field cred-field-rodeo-bull-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='rodeo-bull-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('146'))" mode="fade-slide"]

	<div class="cred-group cred-group-balloons">
		<div class="cred-header"><h4>Balloons</h4></div>
		<div class="cred-field cred-field-balloon-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='balloon-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]

[cred_show_group if="(STR($(supplier-category)) = REGEX('111'))" mode="fade-slide"]


	<div class="cred-group cred-group-travel-agents">
		<div class="cred-header"><h4>Travel Agents</h4></div>
		<div class="cred-field cred-field-travel-agents-options">
			<label class="cred-label">
Agent Options
</label>
			[cred_field field='travel-agent-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>

[/cred_show_group]



[cred_show_group if="(STR($(supplier-category)) = REGEX('140'))" mode="fade-slide"]

	<div class="cred-group cred-group-wedding-planning">
		<div class="cred-header"><h4>Wedding Planning</h4></div>
		<div class="cred-field cred-field-wedding-planning-options">
			<label class="cred-label">
Options You Provide
</label>
			[cred_field field='wedding-planning-options' post='wedding-supplier' value='' urlparam='']
		</div>
	</div>
[/cred_show_group]




[cred_show_group if="(STR($(supplier-category)) = REGEX('112'))" mode="fade-slide"]

	<div class="cred-group cred-group-Venue">
		<div class="cred-header"><h4>Wedding Venue</h4></div>
		<div class="cred-field cred-field-venue-type">
			<label class="cred-label">
Venue Type
</label>
			[cred_field field='venue-type' post='wedding-supplier' value='' urlparam='']
		</div>
		<div class="cred-field cred-field-capacity">
			<label class="cred-label">
Capacity
</label>
			[cred_field field='capacity' post='wedding-supplier' value='' urlparam='']
		</div>
      
      
            
          <div class="cred-field cred-field-extras">
                <label class="cred-label">
Extras You Provide
    </label>
                [cred_field field='venue-extras' post='wedding-supplier' value='' urlparam='']
            </div>    
      
      
	</div>


[/cred_show_group]








	<div class="cred-group cred-group-note-admin">
		<div class="cred-header"><h4>Note to Admin</h4></div>
		<div class="cred-field cred-field-note-to-admin">
			<label class="cred-label">
Private Message
</label>
			[cred_field field='note-to-admin' post='wedding-supplier'  placeholder="Optional note to the Admin of Plan a Perfect Wedding. This will NOT be displayed on your listing."]
		</div>
	</div>


	<div class="cred-group cred-group-terms-conditions">
		<div class="cred-field cred-field-terms-conditions">
			<label class="cred-label">
<a href="<em><u>hidden link</u></em>" target="_blank" title="Read our T&Cs">Terms & Conditions</a>[cred_field field='terms-conditions' post='wedding-supplier' value='' urlparam=''] 
</label>
          
          [cred_show_group if="($(terms-conditions) eq  '1' )"  mode='fade-slide']
          <p style="font-size: 1.3rem">Please read our <a href="<em><u>hidden link</u></em>" target="_blank" title="Read our T&Cs">Terms & Conditions</a>.  Before listings show up on our site they're reviewed to make sure they meet our terms. Typically most listings are reviewed within 24 hours, although in some cases it may take longer. </p>
[/cred_show_group]          
          
		</div>
	</div>



	<div class="cred-field cred-field-listing-submit">
		[cred_field field='form_submit' value='Create Listing' urlparam='' class="btn-primary"]
    </div>  


   <div style="display: none;">  
  NOT SEEN - JUST USED FOR AUTOMATIC EMAILS

       [cred_field field='listing-payment' post='wedding-supplier' value='[types field="listing-payment"][/types]'] 
     
     
		[cred_field field="package-selected" post="wedding-supplier" value="[types usermeta="package" output="raw" user_current="true" ][/types]"]

  </div> 

[cred_field field='form_messages' value='']
[/credform]
#573385

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lindsay,

Could you disable the autoptimise plugin and see if the class is still being added because I see that the css is being loaded from this plugin.

Thanks,
Shane

#573415

Oh, yes. You are right. With Autoptimize disabled it's fine.

With it disabled I also don't get the lbl_generic at the bottom where it lists all the errors.

I've tried to exclude the page from Autoptimize - but of course it adds a variable query string ?_tt=1506367964. So instead I've included the appropriate CSS in my child theme.

I suspect this will be fine, but just out of interest can you see any issues with continuing to use Autoptimize?

Many thanks.

#573429

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lindsay,

You use autoptimise to help with your website speed ? Why not use the WP-Super cache plugin.

Thanks,
Shane

#573772

I already use Hyper Cache. I found a solution in Autoptimize settings which may help somebody else so I've outlined below.

It seems that it was the JS optimisation that was the problem. I tried to exclude scripts from the optimisation (for example validation.js,jquery.validate.js,toolset-parser and more) but this didn't make any difference.

I unchecked the JavaScript option 'Load JavaScript early, this can potentially fix some JS-errors, but makes the JS render blocking.' in Autoptimize and this seemed to do the trick.

I now also don't get the lbl_generic at the bottom where it lists all the errors. And also the variable query string ?_tt=1506367964 no longer appends itself to the end of the URL after clicking the Submit button to display errors.

PS I did add conditional.js to the excluded scripts, otherwise both the [cred_show_group] and conditional display on a field didn't work.

#1269103

We now have a DOC explaining how to solve issues with optimization plugins, related to Toolset:
https://toolset.com/faq/how-to-use-optimization-plugins-with-toolset/
Maybe this helps to resolve this issue for good.