https://avo.cool logo
Question .... is there a way to customize a has...
# avo-2
m
Thread automatically created by r.j.o. in #740893011994738751
l
Hello @square-ocean-29017 Welcom! You can use a resource tool that enables full customization. If you want to stick without custom content for now you can use the grid view, or the preview field to show the comment text
s
Oh interesting! I thought about the grid but I don't see a way to control the width and I want a stacked layout like a table ... I just want more stuff in my table rows. Resource tool might be just what I need.
Is there a way to pre-populate a form field in the new or edit views? For instance setting the author of a comment to the logged in user?
l
You can either use the
default: -> { vale_here }
or hook into
new
and
edit
controller methods and assign the value using
@record.attribute = vale_here
l
I recommend you give the docs a quick reading. you'll find this information pretty fast https://docs.avohq.io/3.0/field-options.html#default-value
s
I'm definitely reading .... just moving fast 🙂