1,801
การแก้ไข
| บรรทัดที่ 716: | บรรทัดที่ 716: | ||
*#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | *#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | ||
*#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | *#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | ||
*#*# If the form must be repopulated ('''{{code|data.repop}}''': ''dict''), do so. | *#*# If the form must be repopulated ('''{{code|data.repop}}''': ''dict''), do so. ''('''{{code|data.repop}}''' shares the same format with the form data in '''{{code|data.crossfill}}'''. See note.)'' | ||
*#*# If other tables and forms on the page are affected ('''{{code|data.crossfill}}''': ''dict''), re-populate them. ''(See note.)'' | *#*# If other tables and forms on the page are affected ('''{{code|data.crossfill}}''': ''dict''), re-populate them. ''(See note.)'' | ||
| บรรทัดที่ 725: | บรรทัดที่ 725: | ||
'<table_or_form_id1>':<table_or_form_data1>, | '<table_or_form_id1>':<table_or_form_data1>, | ||
...} | ...} | ||
# For CuneiForms, table_or_form_data is a dict. | |||
# NOTE THAT fields not presented in the dict are to be populated with blank strings. | |||
# Unaffected fields should be marked for skipping using the value '_skip'. | |||
form_data = {'<field_name0>':<value0>, | |||
'<field_name1>':<value1>, | |||
...} | |||
# For CuneiTables, table_or_form_data takes the following format. The order of | # For CuneiTables, table_or_form_data takes the following format. The order of | ||