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

Question

Question

CSS classes not added until a new row is added or deleted from the collection

asked on August 4

Hello! I have a collection on my form that is being populated by a lookup. When a new row is added by the lookup, the CSS classes aren't being applied until a new row is added or deleted from the collection. How do I resolve this?

0 0

Replies

replied on August 4

Which CSS classes are you referring to and which version are you running? Do you have any JavaScript in the mix?

I've created a lot of tables that populate from lookups and I've never seen the CSS classes set in the field configuration not be assigned.

0 0
replied on August 8

Sorry I am a bit late to the party, but it sounds like you are most likely trying to apply some custom CSS or Jquery on a collection and judging by your statements, it sounds like the CSS is working correctly once you trigger a click function on the appending of the new row.  You also must remember to think about the events that happen when form is loaded, which would certainly take precedent over the click function, which would happen after the form is loaded.  In order to trigger any custom CSS on these, you must also not forget to trigger the CSS on a load/page ready event.  Let me know if you still have trouble 

0 0
replied on August 8

Thanks guys! I am loading a stylesheet into my form upon document load, so that must have been the issue. I changed it to wait for the lookup on the collection to complete and it works now albeit a small delay. 

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

Sign in to reply to this post.