We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Required Field Add-on Idea

Development and Programming

creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

Related, but separate (and maybe a cool addon or field type idea). Is there a field, something in the ‘comments’ variety. imagine an entry where there’s an empty field, that HAS to be filled out with each save. as in: “always required”

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

versioning + a forced, written comment log would be the ticket @andrewgunstone

       
Bryan's avatar
Bryan
24 posts
3 months ago
Bryan's avatar Bryan

Ahh like a commit message, that’s a good idea!

       
User atiqfkqZ's avatar
User atiqfkqZ
8 posts
3 months ago
User atiqfkqZ's avatar User atiqfkqZ

In the past I’ve set up a general ‘required’ textarea field … but I’ve then had to create an add-on that uses the entry saving hook to take the content of the field, adds it to a db table (with the member id, entry id, datetime, etc), and then wipes the content from the field (so it’s empty for next time, thus ‘required’ again).

Then I created a custom fieldtype that just displayed the results from the db table for that entry.

       
User atiqfkqZ's avatar
User atiqfkqZ
8 posts
3 months ago
User atiqfkqZ's avatar User atiqfkqZ

But this is sort of like Git comments … “I did some stuff” isn’t very helpful.

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

@mithra62 highlander might.. accidentally fit this need, too 😃

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

Add highlander field to a channel. require it. and.. the field could be blank, well, there can be only one, innit?

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

so it (ironically?) forces a unique comment

       
User WX2t5Oo4's avatar
User WX2t5Oo4
15 posts
3 months ago
User WX2t5Oo4's avatar User WX2t5Oo4

would require uniqueness across all entries, but I like where you’re headed 🤔

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

all entires in a channel, or all entires, period?

       
User WX2t5Oo4's avatar
User WX2t5Oo4
15 posts
3 months ago
User WX2t5Oo4's avatar User WX2t5Oo4

in a channel OR all :slightlysmilingface: is flexible

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

@Bryan err… the use case from my client call, is more nuanced

       
creativearc's avatar
creativearc
71 posts
3 months ago
creativearc's avatar creativearc

every save of the entry would require a comment. so it’s like.. a Highlander field that ‘empties’ every time an entry edit occurs

       
User WX2t5Oo4's avatar
User WX2t5Oo4
15 posts
3 months ago
User WX2t5Oo4's avatar User WX2t5Oo4

… though would be overwritten upon subsequent changes 🤔 would lose the history

       
User WX2t5Oo4's avatar
User WX2t5Oo4
15 posts
3 months ago
User WX2t5Oo4's avatar User WX2t5Oo4

one sec; it may work with Grid

       
1 2 3 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.