question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How validate after edit?

See original GitHub issue

I tried a several times but no success. I need validate my new value after edit it. My table is all config in HTML, not in JS.

<table id="gridTable" data-url="getList.php" data-resizable="true" data-toggle="table" data-classes="table table-hover" data-striped="true" data-side-pagination="client" data-pagination="false" data-filter-control="true" data-id-field="COR01_ID" data-height="500" data-editable-emptytext="Empty" data-editable-url="updateField.php">
                        <thead>
                            <tr>
                                <th data-field="COR01_SEQUENCIA" data-filter-control="input" data-editable="false">SEQ</th>
                                <th data-field="DATA"  data-filter-control="input" data-editable="true"> 
                                    DATE
                                </th>
                                <th data-field="COR01_PLANT_ORDER" data-filter-control="input" data-editable="false">PO</th>
                                <th data-field="COR61_COD_MATERIAL" data-filter-control="input" data-editable="false">Code</th>
                            </tr>
                        </thead>
                    </table>

I try put data-editable-validate, data-validate and nothing work. How can I validade the value after edit??

I try validate in server side and response a string with the error but I can show this error because I dont have a callback to get it. How can I do this too?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
jimgitcommented, Jun 21, 2018

Full field definition:

  { field: 'aimValue', title: 'Aim<br>Value', class: 'danger',editable: { mode: 'inline', validate: function (v) { return validateData(this, v); }, }, },
1reaction
jimgitcommented, Jun 21, 2018

I had a complex form with lots of validation - I did this for the editable settings

editable: { mode: ‘inline’, validate: function (v) { return validateData(this, v); }, }, },

The validateData was my function to look at the field to be validated and apply the proper rules. I think returning false cancels the edit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I validate input only after it was changed?
So, when I'm opening a page with this form, input is already red bordered, because it's empty. The question is - how can...
Read more >
How to validate after user enters value and update value?
If you wish to validate the editor when you click out of the editor, handle the Form. Click event and call the TextEdit....
Read more >
Updating data validation after editing the list
CTRL+H or Edit>Find & Replace · Find: [Whatever the old word was] · Replace with: [New word] · 'Replace All'.
Read more >
More on data validation
Home tab, in the ; Editing group, click ; Find & Select, and then click ; Data Validation. After you have found the...
Read more >
validation rule to fire only during edit
Hi I need to have a validation rule fire only when Lead object Email field is edited and not when inserted.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found