• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFLayout

New Here ,
Oct 02, 2016 Oct 02, 2016

Copy link to clipboard

Copied

Is there a way to automatically submit the form on change and keep it in the layout. If I do an onchange it opens in a new tab?

<cflayout type="vbox" name="status">

                        <cflayoutarea>

                          <cfform name="myform" format="html" action="Status.cfm" >

                            <span class="ticket-functions">Status:</span>

                            <cfselect name="status" onchange="this.myform.submit()"  >

                                <cfoutput query="status">

                                    <option value="#status.statid#">#status.statname#</option>

                                </cfoutput>

                            </cfselect>

                            <cfinput type="hidden" name="workid" value="1">

                            <cfinput name="prompt" type="submit" value=" " class="finalized-button" >

                            </cfform>

                          </cflayoutarea>

                        </cflayout>

Views

174

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 02, 2016 Oct 02, 2016

Copy link to clipboard

Copied

LATEST

--Matthew-- wrote:

Is there a way to automatically submit the form on change and keep it in the layout.

Let the form submit to the same page. That is,

<cfform name="myform" format="html">

onchange="this.myform.submit()"

Try instead: onchange="myform.submit()"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation