Information only fields in Editor
Information only fields in Editor
Hi.
Is there any possibility to display additional fields when editing a row, without them actually being submitted?
Currently I defined them as readonly, but even so that data gets submitted and I do not want to submit those fields. Does Editor have any function which can do that out of the box or do I need to write my own functions in the "preSubmit" section. Since I do not want to submit the data, ideal will be if there is a type which is information only:
Current code:
fields: [
{
label: "Company:",
name: "company.Name",
type: "readonly" // Maybe type: "information only", or type label?
},
etc...
As a second question, is there any way not to run the update SQL on all the joined tables?
If I use Events to process my own queries I wish to exclude some of the update queries from the Joined query
This question has an accepted answers - jump to answer
Answers
Currently no - I'm afraid not. All fields will be submitted (or at least checked to see if they should be submitted for when only changed values are to be submitted). Having an option to have such a field type sounds like a good idea - thanks for the suggestion.
Add
->set( false )
to the fields you don't want to be written to.Regards,
Allan
+1