J'aimerai ajouter un champ qui me permette d'ajouter une case à cocher + un lien pour afficher un article joomla qui décrirait les termes & conditions de l'inscription sur le site...La case à cocher et le lien à cliquer (qui s'ouvrira dans une fenêtre modale).
I'd like to add a field (checkbox) to allow to confirm that "terms & conditions" (link) are read before submitting the forms.
Termes & conditions [ ] je confirme avoir lu les termes et conditions d'inscription au site.(I have read terms & conditions)
[ ] est une case à cocher (is a checkbox)
termes et conditions un lien qui s'affiche en modal (link to be opened in modal window)
J'ai lu beaucoup de doc et de post sur les forums mais je bloque sur plusieurs point notamment celui-ci. (i've read lot of docs but i have not found how to do it)
Je suis preneur de n'importe quelle autre façon de faire du moment que ça soit efficace et bien fait. (any other way to get the same result can fit me)
First off, I have replied previously and suggested using third party product for the modal, but it is so much easier to use the JS that is shipped with Seblod. Being ashamed, I apologise to the Seblodiverse and WILL use Seblod's JS.
You seem to be using an old template, not sure if the demo is representative of JSNMico now, but I doubt it has Bootstrap 2, or 3 anyway. JSN used their own framework. Maybe still do.
So, this is the requirement: In your Form (Admin Form (and/or) Site Form view), you want a Checkbox that needs checking in order to complete the Form.
Next to the Checkbox is a link which opens a
Modal window. This Modal window contains an Article (Content view) [Terms And Conditions].
Terms and Conditions Article
First step is to create your Terms and Conditions Article. I imagine you just need a title, alias, catid and fulltext field.
When it is saved, note the Article Id.
List and Search Type
Next, you need to add the 'Terms and Conditions' Article (Content view) to your Form.
I used a
List and Search Type to grab the Article:
List and Search Type:
What kind of items are you searching for?:
How do you want to display these items?
Search Form View, the Field "CCK" will have a Live value of "article".
Add a field to grab the id of the article you want, there already exists the "Article Id" field, add it (or recreate it), and set the live value to the id of the Terms and Conditions Article ie 29 or whatever it is.
I am using the template
Blog - Seb Blog (for no particular reason other than it was already the template being used).
I also used the Item View rather than the List View. If the Item View is not 'clickable', click the List View Button, then the Item view will become available (might have to save first).
Item View I put in the fields Title and Fulltext.
I then put the List and Search Type in the Form:
In your Form, add a List field.
Select the List and Search type just created by putting in the machine name ie my_tandc_search_type or whatever you called it.
Place this field in the Modal Position in the template.
Next step is to install a FREE (no cost) plugin: