xowf::test_item::Question_manager method disable_text_field_feature (protected)

 <instance of xowf::test_item::Question_manager[i]> disable_text_field_feature \
    form_obj feature

Defined in packages/xowf/tcl/test-item-procs.tcl

This function changes the form_constraints of the provided form object by adding "$feature=false" properties to textarea or text_fields entries.

Parameters:
form_obj (required, object)
feature (required)

Testcases:
No testcase defined.
Source code:
set fc {}
foreach e [$form_obj property form_constraints] {
  if {[regexp {^[^:]+_:(textarea|text_fields)} $e]} {
    #ns_log notice "======= turn $feature off"
    append e , $feature=false
  }
  lappend fc $e
}
$form_obj set_property form_constraints $fc
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: