How to make No option Confirm dialog non editable ?

chandrurecchandrurec Member Posts: 560
Hi all,

I want to make the No option in confirm dialog box to be made non-editable or I want to display only yes option to the user.

Is it possible to hide/make No option non-editable in Confirmation dialog?

If anyone know the solution to achieve this, kindly let me know.

thanks in advance.

Regards,
chandru.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    No, you can't hide the buttons in a CONFIRM-statement. You'll have to create your own form and call that instead of using CONFIRM.

    But if there is no "NO"-option, why do you need a CONFIRM anyway?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • MBergerMBerger Member Posts: 413
    It's not possible with the standard confirmation dialog, but if you really want to do this, you can make your own form which you pass text, and start with RUNMODAL.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    I guess he wants to hold on the processing until the user gives his ok.
    Own form opened by RUNMODAL is a possible solution or you could just do the same independent wether the user clicks on Ok or Cancel in a CONFIRM box.
    IF CONFIRM('%1',TRUE,YourText) THEN;
    ...
    
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • SogSog Member Posts: 1,023
    cfr the "dialog"-forms 341 and 342.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • AndwianAndwian Member Posts: 627
    Or maybe just remark the confirm line? :mrgreen:
    Regards,
    Andwian
Sign In or Register to comment.