Information only fields in Editor

Information only fields in Editor

borconiborconi Posts: 56Questions: 19Answers: 1
edited October 2016 in Free community support

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

  • allanallan Posts: 63,836Questions: 1Answers: 10,518 Site admin
    Answer ✓

    without them actually being submitted?

    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.

    is there any way not to run the update SQL on all the joined tables?

    Add ->set( false ) to the fields you don't want to be written to.

    Regards,
    Allan

  • VyacheslavVyacheslav Posts: 70Questions: 27Answers: 0

    without them actually being submitted?

    +1

This discussion has been closed.