Amending link behind submit button

Hi

 

This is may sound like a stupid question, but I am a stupid person. How do I amend the URL behind the 'Submit' button on the join page.

 

I have been trying to figure it out for the past couple of hours but my knowledge of the system is limited.

 

Cheers

Paul

Quote · 4 Sep 2008

/inc/js/join.js  .....

Quote · 4 Sep 2008

Thanks Rumpy

 

You are a very helpful person.

 

I looked at that file and was a bit baffled as to what to amend in it. Java script is not my strong point (well have never touch it. Probably best I start to). I know this is not a "How to program forum" so rather than bother you again, I took another look at the php. After a few more hours I managed to hack in an amendment to the BxBaseFormView.php for when the processing is only dealing with the join.php file.  

 

Thanks for your time.

 

Cheers

Paul

Quote · 4 Sep 2008

What are you trying to accomplish and did you actually getRdone?

Quote · 4 Sep 2008

I have two different types of join form. They are both constructed by join.php but have different fields on them depending on which join link the user selects e.g. join.php?member1 or join.php?member2. Certain fields are mandatory for some users and but are not relevant for other users and so not displayed. So saving the join form as it is presents a problem in that the validation still checks whether a field is mandatory for a user where the field is not relevant. So what I wanted to do was have the 'Submit' button send the same parameter i.e. 'member1' or 'member2'. This has to be built in at join form construction time. So depending on what value was submitted by the 'Submit' button, I would then hack out the mandatory validation for certain fields, so that the profile record gets inserted ok. 

 

What is 'getRdone' ?

 

Cheers

Paul

Quote · 4 Sep 2008

I inserted the following in BxBaseFormView.php in function processFormAttrs, after variable $aFormAttrs['action'] set:

 

  if($aFormAttrs['action'] == '/join.php') {
          $passJoinParam = $_SERVER['QUERY_STRING'];
          $aFormAttrs['action'] .= "?" . $passJoinParam; }

 

I think it is safe enough. I suppose my only problem is that changes to files like that are not very forwardly compatible. :P

 

Cheers

Paul

Quote · 4 Sep 2008

Glad you got it sorted out  ..... 

GetRdone = Larry the cable guy  .....  get 'er done  .....  get it done, etc  ..... 

Document your mods well asnd it won't be as hard to upgrade  ..... 
.

Quote · 4 Sep 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.