CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Change a value after a submit in a search form

Print topic Send  topic

Author Message
DvdW

Posts: 10
Posted: 05/24/2017, 7:13 AM

Hi,

I want to change a value of a field in a search form after the submit and before the value was sent in the url call.


I've try several ways but none works :

A is the field to be modified

* on submit with a setvalue on the field A
* on an onclick on the input field with a setvalue on the field A

Any idea to solve the problem ?

Thank you in advance
View profile  Send private message
chibuzor

Posts: 1
Posted: 05/29/2017, 2:48 PM

Quote DvdW:
Hi,

i just want to use codecharge to build a chat room, pls help?
_________________
chinaecherem
View profile  Send private message
eratech


Posts: 513
Posted: 08/21/2017, 12:29 AM

DvdW - the On Submit and the On click - are they the Client side (javascript) or the Server side events?

I would recommend added your code to the Before Insert or Before Update for the record, but as it's a Search there is no Insert/Update.

So then I would suggest putting your code change in the On Validate for the Search form - it's normal code run as normal, but usually returns errors if validation fails. This time you are making changes to the data.

Hope that helps.

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.