close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Update 2 columns

Thread began 8/25/2020 5:50 am by Jamie | Last modified 8/27/2020 8:36 am by Ray Borduin | 126 views | 2 replies |


Update 2 columns

Hey Ray

How would I go about, if the below drop down is set to 1 a column 'InStock' is set to 1 on insert?

<select name="ProductDropship" id="ProductDropship" onChange="setTextField();" class="select <?php
if (ValidatedField('contentinsert','contentinsert')) {
if ((strpos((",".ValidatedField("contentinsert","contentinsert").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>required<?php //WAFV_Conditional download_insert.php contentinsert(3:)
<option value="" <?php if (!(strcmp("", (ValidatedField("contentinsert","ProductDropship"))))) {echo "selected=\"selected\"";} ?>>Select Type</option>
<option value="0" <?php if (!(strcmp("0", (ValidatedField("contentinsert","ProductDropship"))))) {echo "selected=\"selected\"";} ?>>Stock Item</option>
<option value="1" <?php if (!(strcmp("1", (ValidatedField("contentinsert","ProductDropship"))))) {echo "selected=\"selected\"";} ?>>Dropship Item</option>



Sign in to reply to this post

Ray BorduinWebAssist

What would InStock be set to if that field didn't have a value of 1?

You could set the value of InStock on the insert to: <?php echo($_POST["ProductDropship"] == 1?"1":""); ?>

And set the default to WA_IGNORE if blank.

Sign in to reply to this post
Did this help? Tips are appreciated...


got it thanks Ray

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...