You are viewing limited content. For full access, please sign in.

Question

Question

Forms adding a CSS class parsley-success with green colored text to inputs

asked on January 6, 2021

I keep running into fields turning green found it is due to a class called parsley-success. But I did not create this class, it has just been showing up on some fields, seems to be number fields.

input.parsley-success, select.parsley-success, textarea.parsley-success {

  1. color: #468847;

 

It looks odd because randomly text will just be green.

0 0

Replies

replied on January 6, 2021

Hi Chad,

Are you using self-hosed Forms or Forms in cloud? If self-hosed Forms, which version?

0 0
replied on January 7, 2021

I have been working in the cloud version all week and this is where I am seeing it. Also finding it happens on text fields too, not sure what is adding the class. There are many random fields that are green.

0 0
replied on January 7, 2021

The parsley-success class is added when frontend validation on field passes, like the text will turn red when frontend validation fails. From my test, it will apply to all editable text field and number field, not randomly.

If it looks odd to you, you can turn off it by CSS(see https://answers.laserfiche.com/questions/115080/Fields-Highlighted-in-Green-and-Red), or consider use modern form in cloud. I will let team UX to review current behavior.

1 0
replied on January 8, 2021

This seems to be doing the trick. Not sure why I had it showing randomly. I have a table with multiple Text inputs, the first Text input would be green and the rest would be grey.

The inputs were non-numeric vendor names.

Almost all the number fields were turning green.

0 0
replied on January 10, 2021

Are those grey ones read-only fields?

0 0
replied on January 11, 2021 Show version history

Yes! With the text fields turning green, it was a read-only lookup table.
*With the other number type fields, they were not read only and showing green too.

I would have a table for example that had 2 rows, the first text field would be green, and on the second row it would be grey.

0 0
replied on January 11, 2021

This sounds like another issue to me, as the field is editable on 1st row while read-only on 2nd row.

If you want to look into the behavior, please post another question with more details on configuration. (Is the field inside table set as read-only? What is the row setting of the table? How do you populate the field inside?)

0 0
replied on January 26, 2021

Running into oddness with this again. Why is one date field green and the other is not. I just don't get, as a user, what the colors are trying to tell me.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.