Display Form Behavior
Posted by schuess - Nov 12 ’14 at 05:40
Is there something special in Display Forms that would prevent code like this from executing?
if (fd.field('urgent').control()._el().find('input').prop('checked')){
alert("You have marked this request Urgent.");
$("#displayAlert").show();
};
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
Hello,
Yes, you can get only text representation of field values on display forms. So you should use the code below to retrieve the selected value:
fd.field('urgent').control()._el().text()
-
schuessMemberMember for: 8 years 3 months 22 days
So if when using .input() i check for a .prop(),
what should i be checking for with .text() ?
-
schuessMemberMember for: 8 years 3 months 22 days
-
schuessMemberMember for: 8 years 3 months 22 days
Displaying 1 to 4 of 4 messages