This topic is locked
[SOLVED]

How delete a value of a field with button

3/8/2022 2:14:26 PM
PHPRunner General questions
P
Prof_Moriarti author

Hello i wonder if its possible to delete on edit page the value of a field called Fecha

with a button inserted on edit page

Thxs

aadham 3/8/2022

If the filed is a Text Field, you can you just delete it manually, otherwise please provide more info as to why you believe a custom button is needed.

P
Prof_Moriarti author 3/8/2022

Its a date field and i need to delete the date... and update it to blanc
so i have to go day--- month and year searching from blanc value

its easier and faster i need to delete the field date, clic, and the save the record....

P
Prof_Moriarti author 3/8/2022

Got it
add this code in Client before

var ctrl = Runner.getControl(pageid, 'NAME FIELD');
ctrl.clear();

D
DealerModulesDevClub member 3/8/2022

You can try:

1.) Create a custom button.
2.) In the Client Before tab enter:
var ctrl = Runner.getControl(pageid, 'Fecha');
ctrl.clear();
3.) Be sure to clear out any default entries in the Server tab and Client After tab.

Hope this works for you.

Paul