qGuide: Batch Input Frequent Combination
Button for batch input to multiple form elements allows popular combinations of input values to be implemented as a single button, reducing input costs and the risk of incorrect input. In this example of setting a delivery destination, options such as “Select: Kyoto Head Office”, “Select: Management Department”, and “Select: No delivery time specified” can be entered with just one click.
Input / Output
- → qSelect (SELECT_SINGLE)
q_Office
- → qSelect (SELECT_SINGLE)
q_Dept
- → qSelect (SELECT_SINGLE)
q_Time
Code Example
HTML/JavaScript (click to close)
<span style="color:#FFC69B; font-size:x-large; font-style:italic;"
>One-Click Input</span><a title="
arrArg[0] → q_Office,
arrArg[1] → q_Dept,
arrArg[2] → q_Time
"> <span style="font-size: x-large;" class="material-icons">help_outline</span></a><br>
<button type="button" onclick="user_batchInputDest( 'kyoto', 'mgmt', 'any' )">
Kyoto-Mgmt-Anytime <span class="material-icons">apartment</span></button>
<button type="button" onclick="user_batchInputDest( 'tokyo', 'rd', '08' )">
Tokyo-R&D-AM <span class="material-icons">location_city</span></button>
<script>
function user_batchInputDest ( ...arrArg ) {
qbpms.form.set( 'q_Office', arrArg[0] ); // ★★★ EDIT (Field Name) ★★★
qbpms.form.set( 'q_Dept', arrArg[1] ); // ★★★ EDIT (Field Name) ★★★
qbpms.form.set( 'q_Time', arrArg[2] ); // ★★★ EDIT (Field Name) ★★★
}
</script>
Freely modifiable HTML/JavaScript code, MIT License. No warranty of any kind.
Capture

