Get/set Values from custom fields inside edit/new form

Get/set Values from custom fields inside edit/new form

noslannoslan Posts: 29Questions: 0Answers: 0
edited December 2013 in Editor
Hello, I have a custom field like this in my new/edit form:

[code] conf._input = $(
''+
'
'+
''+

''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+

'');[/code]


It appears inside form correctly, what I need is to get and set de value in and from input id horaF from data, and really I can't understand how to do this with provided examples, can you please, help me?

Replies

  • noslannoslan Posts: 29Questions: 0Answers: 0
    I gues I should play with

    "get": function ( conf ) {
    return $('button.selected', conf._input).attr('value');
    },

    "set": function ( conf, val ) {
    if ( ! conf._enabled ) {
    return;
    }

    Butnot sure how to do it :/
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    It sounds like you want to use a field type plug-in: https://editor.datatables.net/tutorials/field_types . Have you worked through that tutorial already?

    I see your trial of Editor ended back in September. Do you have any questions regarding its licensing and how that might apply to your use case? if so, please do just get in touch!

    Allan
  • noslannoslan Posts: 29Questions: 0Answers: 0
    I'm gonna buy it, don't worry, I'm still testing with basic sql config, and yes, as I said I've read the tutorial, but not geting how to get and set my own field type data, can you help me please?
  • noslannoslan Posts: 29Questions: 0Answers: 0
    Editor bought: I need the invoice and help with this issue, please.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi,

    Thanks for purchasing Editor! I e-mailed the invoice over this morning. It was sent to the same e-mail address that you used to signup for your DataTables account. Possibly it ended up in your spam folder? If not, let me know and I'll send it again.

    I'll take a look at your question about custom fields shortly.

    Allan
  • noslannoslan Posts: 29Questions: 0Answers: 0
    Hi Allan, I didn't recive any invoice but I recived a mail wiht "Many thanks for your purchase of ...." stuff, can you please re send it?

    Thanks
This discussion has been closed.