default value must work only for add dialog form input field values are null

Questionsdefault value must work only for add dialog form input field values are null
toki asked 11 years ago

Hi,

Default value "Write 100 characters" must work only for add dialog form input field values are null. But I see it when open edit dialog form although related field is not null.

Am I wrong ?

If not , how is it possible to get state of phpgrid in edit or add dialog form during opened. So can be controlled if … then…else…

to prevent default value for field inputs in edit dialog from.

regards…

2 Answers
Abu Ghufran answered 11 years ago

When you set 'defaultValue', it only applies for add record, and not edit.

$col["editoptions"] = array( "defaultValue"=>'Write 100 characters');

toki answered 11 years ago

Abu,

When I set 'defaultValue' instead of just 'value' it only applies for add record, and not edit. It is clear now. It works with no problem.

Thank you very much.

Your Answer

20 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?