How to render text in Autoform instead of an Input Field


#1

I have an application where instead of rendering a default text input field, or a textarea field, I would like to simply just render text underneath the label, which will be the result of a funciton.

For instance I have a collection and a field will have a number of hit’s for that page. I just want to return the number of hit’s as a field instead of showing a text box as this is just for informational use.


#2

Hello,
you can create helper function even with arguments and render it anywhere in template you want. It does not have to be input field.


#3

Anyway to do this through simpleschema ? You have am example ?

So if I did this in simple schema do I need to do this inside autoform -> afFieldInput