close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Repeat selection determined by radio input selection

Thread began 11/28/2022 5:41 am by s.joiner74419001 | Last modified 11/29/2022 9:14 am by s.joiner74419001 | 222 views | 5 replies

s.joiner74419001

Hi Ray,

Thanks for this, your code update works great now.

There is another issue I have now which is with the jQuery validate plugin I’m using with the forms.

It’s basically an error placement issue with the radio input field.

Before I used the repeat selection with this I used the code below to display the errors in the correct elements below the form group

if ( element.attr( "name" ) === "title_1" ) {
error.appendTo( "#title-error" );
}
else if ( element.attr( "name" ) === "title_2" ) {
error.appendTo( "#title2-error" );
}
else if ( element.attr( "name" ) === "title_3" ) {
error.appendTo( "#title3-error" );
}
else if ( element.attr( "name" ) === "title_4" ) {
error.appendTo( "#title4-error" );
}
else if ( element.attr( "name" ) === "title_5” ) {
error.appendTo( "#title5-error" );
}
else if ( element.attr( "name" ) === "title_6” ) {
error.appendTo( "#title6-error" );
}
else {
error.insertAfter( element );
}

Here’s the html sample of form group 1

<div class="form-group">
….radio inputs here
<div id="title-error"></div>
</div>

So this displayed the error message nicely below each form group. ( see screenshot_a )

The reason for this is if I just let the plugin handle the error placement it gets put inside the first radio button div ( see screenshot_b )

So because the repeat selection doesn’t dynamically create the numbers for the error message element, I’m stuck with the screenshot_b.

I would also like to have each section title dynamically created too..

i.e Director 1 … Director 2 … Director 3 etc.

i'm aware this is a javascript / jquery issue.

Is this something you could help with in a support ticket?

Many thanks

Steve

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...