fancy-crowd-87619
08/24/2023, 9:05 PMexcept_on
, but it is throwing a NoMethodError:
field :last_verified_at, as: :date_time, except_on: [:create]
Error:
NoMethodError: undefined method `show_on_create=' for #<Avo::Fields::DateTimeField:0x0000000118de2588 @show_on_index=true, @show_on_show=true, @show_on_new=true, @show_on_edit=true, @id=:last_verified_at, @name=nil, @translation_key=nil, @block=nil, @required=nil, @readonly=false, @disabled=false, @sortable=false, @nullable=false, @null_values=[nil, ""], @format_using=nil, @placeholder=nil, @help=nil, @default=nil, @visible=nil, @as_label=false, @as_avatar=false, @as_description=false, @index_text_align=:left, @html=nil, @view=nil, @value=nil, @stacked=nil, @resource=nil, @args={:as=>:date_time, :except_on=>[:create]}, @computable=true, @computed=false, @computed_value=nil>
Anyone know if I'm doing something stupid here?loud-jewelry-99127
08/24/2023, 9:12 PMfancy-crowd-87619
08/24/2023, 9:12 PMfancy-crowd-87619
08/24/2023, 9:15 PMloud-jewelry-99127
08/24/2023, 9:18 PM:new
is what i was going to suggest youloud-jewelry-99127
08/24/2023, 9:19 PMfancy-crowd-87619
08/24/2023, 9:20 PMexcept_on
seems to do nothing for me (field still shows up on all views, including new
). However, hide_on
totally works.fancy-crowd-87619
08/24/2023, 9:20 PMhide_on
with new
, thank you!fancy-crowd-87619
08/24/2023, 9:21 PMfancy-crowd-87619
08/24/2023, 9:21 PMloud-jewelry-99127
08/24/2023, 9:23 PMexcept_on
doing nothing, I'm not sure why is that happening, im testing it locally and seems to be workingloud-jewelry-99127
08/24/2023, 9:26 PMfancy-crowd-87619
08/24/2023, 9:27 PMfancy-crowd-87619
08/24/2023, 9:28 PMloud-jewelry-99127
08/24/2023, 9:34 PMhide_on
option for nowloud-jewelry-99127
08/24/2023, 10:02 PMexcept_on
logic was inverted and the docs was wrongly referring to :create
instead :new
https://github.com/avo-hq/avo/pull/1927
https://github.com/avo-hq/avodocs/pull/95
There are two open PRs that fix both problems, thanks for reporting this!