Welcome, Guest

Clickon: Text soll verschwinden
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Clickon: Text soll verschwinden

Clickon: Text soll verschwinden 1 year, 9 months ago #15790

Hallo,

noch ein Problem: Ich habe ein neues Textfeld erstellt, in dem auch schon Text drin steht. Also ein Feld in dem steht "Ihr Name".

Wie schaff ich das jetzt, dass beim reinklicken der Text verschwindet und der Ausfüller des Formulars eben gleich seinen Namen reinschreiben kann..?! Ich hab schon Google gefragt... hab aber noch keine Lösung gefunden....

Danke
  • anja
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Clickon: Text soll verschwinden 1 year, 9 months ago #15919

Hat keiner eine Idee...?

Vielleicht hab ich mich undeutlich ausgedrückt...
Ich meinte so, wie das Feld oben links in dem steht "Search Forum"

Vielleicht is es jetzt klarer ...
  • anja
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Clickon: Text soll verschwinden 1 year, 8 months ago #16773

Hi anja!

öffne bitte die einstellungen deiner Textbox in der du das veranstalten willst...
Bei der Registerkarte "Einstellungen" schreibst du unten bei "Wert" den vorgeblendeten Wert rein.
Danach klickst du auf die Registerkarte "Skripte". Anschließend wählst du bei "Aktionsskript"->"Special"->"Fokus"!
Nun wird ein Code erzeugt...
Füge bitte nach dem Codeschnippsel
case 'focus':

folgenden Code ein (musst den noch anpassen):
var textfeld = ff_getElementByName('Name deiner Textbox');
if(textfeld.value == 'dein standardwert'){textfeld.value = '';}


das sollte es gewesen sein

matthias
  • goshmac
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 5

Re: Clickon: Text soll verschwinden 1 year, 8 months ago #17036

Hey Danke!!!

Hat super funktioniert!!

Danke für die Antwort!

LG anja
  • anja
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Clickon: Text soll verschwinden 1 year, 7 months ago #18878

Hi mal ne kleine Frage zu dem Obrigem Code wollt den bei mir einsetzen bei einer Radiogruppe nur gibt er mit bei value immer nur die erste option aus nicht die die ausgewählt ist die auswahl möglichkeiten sind so festgelegt:
0;Goldkaufplan;Goldkaufplan
0;Einmalkauf;Einmalkauf
der script schaut so aus:
function ff_validate_nextpage(element, action)
{
    if(typeof bfUseErrorAlerts != 'undefined'){
     JQuery(".bfErrorMessage").html('');
     JQuery(".bfErrorMessage").css("display","none");
    }

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
           alert(error);
        } else {
           bfShowErrors(error);
        }
        ff_validationFocus('');
    } else
        var textfeld = ff_getElementByName('Vertrag');
        alert(textfeld.value);
        if(textfeld.value == 'Goldkaufplan'){ff_switchpage(ff_currentpage+1);}
        else {ff_switchpage(ff_currentpage+2);}
}

aber bei der Alert box kommt immer nur Goldkaufplan auch wen man einmalkauf auswählt weshalb?
  • Cannon
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: Clickon: Text soll verschwinden 1 year, 7 months ago #18914

Hi!

also hast du eine Auswahlliste oder radiobuttons?

Sieht mir eher nach einer Auswahlliste aus..

matthias
  • goshmac
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 5
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.35 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint