Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / UserSubs Support / [RESOLVED] Date obligatoire / Mandatory date

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] Date obligatoire / Mandatory date

More
10 years 1 week ago - 10 years 2 days ago #11117 by pedro
Hello,

I'm working to replace an old listbingo with a new adsmanger module.
Actually, I'm trying to add a field : a mandatory date. Unfortunately, it doesn't work. Users can validate a new add, even if they don't put a date. Others mandatory fields (text for exampe) work !
Is it a bug ? is it possible ?


Bonjour,

Je travaille actuellement sur le remplacement d'un vieux module listbingo vers adsmanager.
J'essaye de placer un champ date obligatoire, malheureusement, ca ne fonctionne pas. Les utilisateurs peuvent valider une nouvelle annonce, même s'ils ne renseignent aucune date. Pour les autres type de champs, ca fonctionne.
Est-ce un bug ? Est-ce au moins possible ?

Merci.
Last edit: 10 years 2 days ago by loic.
More
10 years 1 week ago #11131 by loic
Replied by loic on topic Date obligatoire / Mandatory date
Bonjour,

Vous avez specifiez que le champs doit être obligatoire dans sa configuration ?

Cordialement.
More
10 years 1 week ago #11135 by pedro
Replied by pedro on topic Date obligatoire / Mandatory date
Bonjour,

Merci pour la réponse.
Oui, il y a d'ailleurs bien l’astérisque dans le formulaire, qui précise que c'est obligatoire.
More
10 years 6 days ago - 10 years 6 days ago #11141 by loic
Replied by loic on topic Date obligatoire / Mandatory date
Bonjour,

La vérification des champs obligatoires passe par du javascript.
Donc si il y a un conflit javascript, il est possible que la vérification ne se fasse pas.

Si vous regardez la console de votre navigateur (F12 sur Chrome) voyez vous une erreur ?

Cordialement.
Last edit: 10 years 6 days ago by loic.
More
10 years 3 days ago #11182 by pedro
Replied by pedro on topic Date obligatoire / Mandatory date
Bonjour,

Non, il n'y a aucun conflit javascript. Mais je pense avoir mis le doigt sur le problème.

En fait, le javascript semble effectuer les contrôles sur les input qui possèdent l'attribut required. Or, les champs de type date n'ont pas cet attribut (AdsManager 3.0.4).

Je ne sais pas si vous faite partie des développeurs du module, si c'est le cas, ça peut vous intéresser :
j'ai regardé un peu le code, et d'après moi, ça se passe dans le fichier components\com_adsmanager\helpers\field.php. Si j'ajoute

ligne 397 :
	if ($field->required == 1) {
		$options['required'] = ''; // <<< Ajout de l'attribut required
		$options['class'] = 'adsmanager_required';
		$options['mosReq'] = '1';
		$options['mosLabel'] = "$strtitle";
	}

alors je retrouve dans mon formulaire l'attribut required, et tout rentre dans l'ordre.
Je pense que c'est un oubli dans le cas du type de champ date.
More
10 years 2 days ago #11192 by loic
Replied by loic on topic Date obligatoire / Mandatory date
Bonjour,

Merci pour l'info, je vais corriger ça.

Je passe ce topic en resolu :).

Cordialement.
Time to create page: 0.135 seconds
Powered by Kunena Forum