Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why error message is not shown
Message
De
12/09/2016 06:56:11
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01640697
Message ID:
01640713
Vues:
30
>I made some changes:
>
>
><ng-form name="editPaDSSForm">
>    <div class="form-horizontal">
>        <div class="row">
>            <div class="form-group">
>
>                <div class="col-xs-6">
>                    <label class="control-label"
>                           ng-hide="(form.editPaDSSForm.maxDaysLocal.$error.max || form.editPaDSSForm.maxDaysLocal.$error.min) && form.editPaDSSForm.maxDaysLocal.$dirty"
>                           title="@Messages.maxAgeLocalSalespoint">@Messages.maxAgeLocalSalespoint</label>
>                        <label class="field-validation-error control-label-error animate-show"
>                               ng-show="(form.editPaDSSForm.maxDaysLocal.$error.max || form.editPaDSSForm.maxDaysLocal.$error.min) && form.editPaDSSForm.maxDaysLocal.$dirty">
>                            @String.Format(Messages.mustBeBetweenXandY, Messages.maxAgeLocalSalespoint, "1", "45")
>                        </label>
>
>                        <input type="number" name="maxDaysLocal"
>                               id="maxDaysLocal"
>                               min="1" max="45"
>                               ng-model="currentPrefs.loclccdays"
>                               class="form-control"
>                               placeholder="0"
>                               data-sm:number data-accuracy="0">
>
>
>                    </div>
>                </div>
>            </div>
>        </div>
> </ng-form>
>
>The above is not working :(
>
>And this works fine - do you see any difference?
>
>
><div class="col-lg-3 col-md-6">
>                                <div class="format-label">
>                                    <label class="control-label" 
>                                           ng-hide="(form.editSpecialGeneralForm.discPct.$error.max || form.editSpecialGeneralForm.discPct.$error.min) && form.editSpecialGeneralForm.discPct.$dirty">@Labels.percentage:</label>
>                                    <label class="field-validation-error control-label-error animate-show" 
>                                           ng-show="(form.editSpecialGeneralForm.discPct.$error.max || form.editSpecialGeneralForm.discPct.$error.min) && form.editSpecialGeneralForm.discPct.$dirty">
>                                        @String.Format(Messages.dataRange, "-100", "100")
>                                    </label>
>                                </div>
>                                <div class="input-group">
>                                    <input class="form-control percent-icon" id="discPct" max="100" min="-100"
>                                           name="discPct"
>                                           placeholder="0"
>                                           ng-model="currentSpecial.discPct" type="number"
>                                           data-sm:number data-accuracy="0">
>                                    @*<span class="input-group-addon">%</span>*@
>                                </div>
>                            </div>
Lots. But since I can't debug I don't know what the problem might be. Why not examine the HTML in the debugger and check that the attributes are being set.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform